ColPack
Utilities/MatrixDeallocation.h File Reference
#include "Definitions.h"
This graph shows which files directly or indirectly include this file:

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)
template<typename T >
int free_2DMatrix (T **dp2_2DMatrix, unsigned int i_numOfRows)
template<typename T >
int free_2DMatrix (T ***dp3_2DMatrix, unsigned int i_numOfRows)

Function Documentation

template<typename T >
int free_2DMatrix ( T ***  dp3_2DMatrix,
unsigned int  i_numOfRows 
)

Definition at line 58 of file MatrixDeallocation.h.

References _TRUE, and free_2DMatrix().

Here is the call graph for this function:

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