00001 //*****************************************************************************// 00002 // // 00003 // Copyright (c) 2001 // 00004 // INRIA // 00005 // 54600 VILLERS LES NANCY // 00006 // France // 00007 // // 00008 //*****************************************************************************// 00009 // // 00010 // *** NOTICE OF PROPRIETARY INFORMATION *** // 00011 // // 00012 // The information contained in this file is considered proprietary and the // 00013 // exclusive property of INRIA. This information may not be disclosed, // 00014 // duplicated or used, in whole or in part, for any purpose whatsoever // 00015 // without express written authorization from INRIA // 00016 // // 00017 //*****************************************************************************// 00018 00019 00020 #include "QCMatElemGtr.hpp" 00021 #include "QCMatrix.hpp" 00022 #include "QCSymMatrix.hpp" 00023 00024 00025 00029 template <class TPMatrix> 00030 QCMatElemGtr<TPMatrix>::QCMatElemGtr (void) : 00031 matrix() 00032 {} 00033 00034 00035 00039 template <class TPMatrix> 00040 QCMatElemGtr<TPMatrix>::QCMatElemGtr (const int& dim) : 00041 matrix(dim) 00042 {} 00043 00044 00045 00049 template <class TPMatrix> 00050 QCMatElemGtr<TPMatrix>::~QCMatElemGtr (void) { 00051 } 00052 00053 00054 00060 template <class TPMatrix> 00061 void 00062 QCMatElemGtr<TPMatrix>::init (void) { 00063 matrix.initClean(); 00064 } 00065 00066 00067 00071 template <class TPMatrix> 00072 void 00073 QCMatElemGtr<TPMatrix>::sizeMatrix (const int& dimMatrix){ 00074 matrix.setDim(dimMatrix); 00075 } 00076 00077 00078 00083 template <class TPMatrix> 00084 bool 00085 QCMatElemGtr<TPMatrix>::allocateMatrix (const int& dimMatrix) { 00086 return matrix.setDimAndAllocate(dimMatrix); 00087 } 00088 00089 00090 00094 template <class TPMatrix> 00095 template <class TPManager> 00096 void 00097 QCMatElemGtr<TPMatrix>::writeTransEigenvectMatrix (TPManager& managerInst, 00098 const string& resultFileName) const 00099 { 00100 // CQCWriter& theWriter = managerInst.getTheWriter(); 00101 // // 00102 // string transEigenVectFileName(CQCCommon::ResultDir + CQCCommon::DirSeparator + 00103 // resultFileName + string("_EigenVectCt") + 00104 // theWriter.getDateForOutFilesStr() + 00105 // CQCCommon::Dot + CQCCommon::SuffixFileOut); 00106 // theWriter.openFile(transEigenVectFileName.c_str(), "w"); 00107 // matrix.writeLikeBands(managerInst); 00108 // theWriter.closeFile(); 00109 } 00110 00111 00112 00113 00114 00115 00116 00117 00121 template class QCMatElemGtr<QCMatrix>; 00122 template class QCMatElemGtr<QCSymMatrix>;