Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "MatrixDeallocation.h"
00022
00023 int MatrixDeallocation_SparseSolversFormat(unsigned int **ip2_RowIndex, unsigned int **ip2_ColumnIndex, double **dp2_JacobianValue) {
00024
00025 delete[] (*ip2_RowIndex);
00026 delete ip2_RowIndex;
00027
00028 delete[] (*ip2_ColumnIndex);
00029 delete ip2_ColumnIndex;
00030
00031 delete[] (*dp2_JacobianValue);
00032 delete dp2_JacobianValue;
00033
00034 return _TRUE;
00035 }
00036
00037 int MatrixDeallocation_RowCompressedFormat(double ***dp3_HessianValue, unsigned int i_numOfRows) {
00038
00039 free_2DMatrix(dp3_HessianValue, i_numOfRows);
00040 return _TRUE;
00041 }
00042
00043
00044 int MatrixDeallocation_CoordinateFormat(unsigned int **ip2_RowIndex, unsigned int **ip2_ColumnIndex, double **dp2_HessianValue) {
00045
00046 delete[] (*ip2_RowIndex);
00047 delete ip2_RowIndex;
00048
00049 delete[] (*ip2_ColumnIndex);
00050 delete ip2_ColumnIndex;
00051
00052 delete[] (*dp2_HessianValue);
00053 delete dp2_HessianValue;
00054
00055 return _TRUE;
00056 }
00057