/* nag_make_indices (m01zac) Example Program. * * Copyright 1990 Numerical Algorithms Group. * * Mark 2 revised, 1992. * Mark 5 revised, 1998. * Mark 7 revised, 2001. * Mark 8 revised, 2004. * */ #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif static Integer NAG_CALL compare(const Nag_Pointer a,const Nag_Pointer b) { double x = *((const double *)a); double y = *((const double *)b); return (x=1 && n>=1 && n<=n) { if ( !( vec = NAG_ALLOC(m*n, double)) || !( rank = NAG_ALLOC(m, size_t)) ) { Vprintf("Allocation failure\n"); exit_status = -1; goto END; } tdvec = n; } else { Vprintf("Invalid m or n.\n"); exit_status = 1; return exit_status; } for (i=0; i