|
Function | de-allocate a matrix |
|
Syntax C/C++ | #include <MFstd.h>
void M_free( void **M ); |
C++ MatObj | #include <OptiVec.h>
void matrix<T>::free(); |
Pascal/Delphi | uses MFstd;
procedure M_free( M:Pointer ); |
|
CUDA function C/C++ | #include <cudaMatLib.h>
int cudaM_free( void **d_M );
|
CUDA function Pascal/Delphi | uses MFstd;
function cudaM_free( d_M:Pointer ): IntBool;
|
|
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. |
|
|