To allocate it:
float **out=(float **)malloc(nRows * sizeof(float *));
for(unsigned int i = 0; i < nRows; i++)
out[i]=(float *)malloc(nCols * sizeof(float));
To free it:
for(unsigned int i = 0; i < nRows; i++)
free(out[i]);
free(out);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment