M_free
Functionde-allocate a matrix
Syntax C/C++#include <MFstd.h>
void M_free( void **M );
C++ MatObj#include <OptiVec.h>
void matrix<T>::free();
Pascal/Delphiuses MFstd;
procedure M_free( M:Pointer );
DescriptionThe 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 handlingTrying 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.
See alsoM_nfree,  V_freeAll,  MF_matrix,  MF_matrix0

MatrixLib Table of Contents  OptiVec home