|Function||de-allocate a matrix|
|Syntax C/C++||#include <MFstd.h>|
void M_free( void **M );
|C++ MatObj||#include <OptiVec.h>|
procedure M_free( M:Pointer );
|Description||The matrix M is freed (i.e. de-allocated). M_free should be used only for the de-allocation of matrices which have previously be allocated by one of the functions of the MF_matrix or MF_matrix0 family. To free several matrices simultaneously, use M_nfree (C/C++ only). To free all allocated vectors and matrices simultaneously, call V_freeAll.
|Error handling||Trying to free a matrix that has already been freed, or that has never been allocated memory, leads to a warning message "Cannot free non-existent vector". Program execution is continued without freeing anything in this case.|
MatrixLib Table of Contents OptiVec home