ColPack
|
00001 /************************************************************************************ 00002 Copyright (C) 2005-2008 Assefaw H. Gebremedhin, Arijit Tarafdar, Duc Nguyen, 00003 Alex Pothen 00004 00005 This file is part of ColPack. 00006 00007 ColPack is free software: you can redistribute it and/or modify 00008 it under the terms of the GNU Lesser General Public License as published 00009 by the Free Software Foundation, either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 ColPack is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public License 00018 along with ColPack. If not, see <http://www.gnu.org/licenses/>. 00019 ************************************************************************************/ 00020 00021 #include "MatrixDeallocation.h" 00022 00023 int MatrixDeallocation_SparseSolversFormat(unsigned int **ip2_RowIndex, unsigned int **ip2_ColumnIndex, double **dp2_JacobianValue) { 00024 //Deallocate the arrays 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 //Deallocate the 2D Matrix 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 //Deallocate the arrays 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