/* * Dynamic allocation of two dimensional arrays. The allocated * entity is typed as a pointer to pointer, and can be treated * just like a variable declared as a regular two dimensional array. */ #ifndef _ARRAY_2D_H_ #define _ARRAY_2D_H_ #include #include // Allocate a two dimensional array double ** array2dAlloc(int rows, int cols); // De-allocate a two dimensional array void array2dFree(double ** array); // Display a two dimensional array void array2dDisplay(double ** array, int rows, int cols); // Transpose a two dimensional array double ** array2dTranspose(double ** array, int rows, int cols); #endif