00001 /*************************************************************************** 00002 * Quantum Construct (qC++) * 00003 * The Quantum Physics Computational Library * 00004 * Copyright (C) 2005 by Shekhar S. Chandra * 00005 * Shekhar.Chandra@sci.monash,edu.au * 00006 * * 00007 * This program is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation; either version 2 of the License, or * 00010 * (at your option) any later version. * 00011 * * 00012 * This program 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 General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License * 00018 * along with this program; if not, write to the * 00019 * Free Software Foundation, Inc., * 00020 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00021 ***************************************************************************/ 00022 /* 00023 Ver Info - QCLinearAlgebra.h 00024 1.0.0 - Original Implementation 00025 */ 00026 00027 #ifndef QCLINEARALGEBRA_H 00028 #define QCLINEARALGEBRA_H 00029 00030 #include "qccomplexfield.h" 00031 #include "qcparameter.h" 00032 00037 class QCLinearAlgebra 00038 { 00039 public: 00040 //------------------------------------------------------- 00046 QCLinearAlgebra(); 00050 ~QCLinearAlgebra(); 00052 00055 void solveTridiagonal(Array<parameterType,1>& a, Array<parameterType,1>& b, Array<parameterType,1>& c, Array<parameterType,1>& unknowns, Array<parameterType,1>& knowns); 00059 void solveTridiagonal(Array<complexType,1>& a, Array<complexType,1>& b, Array<complexType,1>& c, Array<complexType,1>& unknowns, Array<complexType,1>& knowns); 00063 void solveTridiagonal2(Array<complexType,1>& a, Array<complexType,1>& b, Array<complexType,1>& c, Array<complexType,1>& unknowns, Array<complexType,1>& knowns); 00064 00065 }; 00066 #endif