ColPack
Utilities/MatrixDeallocation.cpp File Reference

Go to the source code of this file.

Functions

int MatrixDeallocation_SparseSolversFormat (unsigned int **ip2_RowIndex, unsigned int **ip2_ColumnIndex, double **dp2_JacobianValue)
 Deallocate all the memory reserved for a matrix presented in Sparse Solvers Format.
int MatrixDeallocation_RowCompressedFormat (double ***dp3_HessianValue, unsigned int i_numOfRows)
 Deallocate all the memory reserved for a matrix presented in ADOLC Format.
int MatrixDeallocation_CoordinateFormat (unsigned int **ip2_RowIndex, unsigned int **ip2_ColumnIndex, double **dp2_HessianValue)

Function Documentation

int MatrixDeallocation_CoordinateFormat ( unsigned int **  ip2_RowIndex,
unsigned int **  ip2_ColumnIndex,
double **  dp2_HessianValue 
)

Deallocate all the memory reserved for a matrix presented in Coordinate Format Postcondition:

  • ip2_RowIndex, ip2_ColumnIndex, dp2_HessianValue become dangling pointers. So for safety reasons, please set ip2_RowIndex, ip2_ColumnIndex, dp2_HessianValue to NULL after calling this function.

Definition at line 44 of file MatrixDeallocation.cpp.

References _TRUE.

int MatrixDeallocation_RowCompressedFormat ( double ***  dp3_HessianValue,
unsigned int  i_numOfRows 
)

Deallocate all the memory reserved for a matrix presented in ADOLC Format.

Postcondition:

  • dp3_HessianValue become dangling pointers. So for safety reasons, please set dp3_HessianValue to NULL after calling this function.

Definition at line 37 of file MatrixDeallocation.cpp.

References _TRUE, and free_2DMatrix().

Here is the call graph for this function:

int MatrixDeallocation_SparseSolversFormat ( unsigned int **  ip2_RowIndex,
unsigned int **  ip2_ColumnIndex,
double **  dp2_JacobianValue 
)

Deallocate all the memory reserved for a matrix presented in Sparse Solvers Format.

Postcondition:

  • ip2_RowIndex, ip2_ColumnIndex, dp2_JacobianValue become dangling pointers. So for safety reasons, please set ip2_RowIndex, ip2_ColumnIndex, dp2_JacobianValue to NULL after calling this function.

Definition at line 23 of file MatrixDeallocation.cpp.

References _TRUE.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines