plAlloc2dGrid: Allocate a block of memory for use as a matrix of type PLFLT_MATRIX

plAlloc2dGrid (f,
 nx,
 ny);
 

Allocates the memory for a matrix of type PLFLT_MATRIX (organized as an Iliffe column vector of pointers to row vectors). As a result the matrix can be accessed using C/C++ syntax like *f[i][j]. The memory associated with this matrix must be freed by calling plFree2dGrid once it is no longer required.

f (PLFLT_NC_MATRIX *, output)

If the allocation is a success, a pointer to a matrix (organized as an Iliffe column vector of pointers to row vectors) is returned. If the allocation is a failure, then the returned value of f will be NULL.

nx, ny (PLINT, input)

Dimensions of matrix to be allocated.

This function is used in our C (and C++) examples 8, 9, 11, 14, 16, 20, 21, 22, 28, 30.