|
AbstractLinAlgPack: C++ Interfaces For Vectors, Matrices And Related Linear Algebra Objects Version of the Day
|
00001 // @HEADER 00002 // *********************************************************************** 00003 // 00004 // Moocho: Multi-functional Object-Oriented arCHitecture for Optimization 00005 // Copyright (2003) Sandia Corporation 00006 // 00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive 00008 // license for use of this work by or on behalf of the U.S. Government. 00009 // 00010 // This library is free software; you can redistribute it and/or modify 00011 // it under the terms of the GNU Lesser General Public License as 00012 // published by the Free Software Foundation; either version 2.1 of the 00013 // License, or (at your option) any later version. 00014 // 00015 // This library is distributed in the hope that it will be useful, but 00016 // WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00023 // USA 00024 // Questions? Contact Roscoe A. Bartlett (rabartl@sandia.gov) 00025 // 00026 // *********************************************************************** 00027 // @HEADER 00028 00029 #ifndef ABSTRACT_LINALG_PACK_MATRIX_SYM_NONSINGULAR_H 00030 #define ABSTRACT_LINALG_PACK_MATRIX_SYM_NONSINGULAR_H 00031 00032 #include "AbstractLinAlgPack_MatrixNonsing.hpp" 00033 00034 namespace AbstractLinAlgPack { 00035 00061 class MatrixSymNonsing 00062 : public virtual MatrixNonsing 00063 { 00064 public: 00065 00068 00069 #ifndef DOXYGEN_COMPILE 00070 00071 typedef Teuchos::RCP<const MatrixSymNonsing> mat_msns_ptr_t; 00073 typedef Teuchos::RCP<MatrixSymNonsing> mat_msns_mut_ptr_t; 00074 #endif 00075 00076 enum EMatrixDummyArg { DUMMY_ARG }; 00077 00079 00082 00084 friend 00085 void M_StMtInvMtM( 00086 MatrixSymOp* sym_gms_lhs, value_type alpha 00087 ,const MatrixOp& mwo 00088 ,BLAS_Cpp::Transp mwo_trans, const MatrixSymNonsing& mswof 00089 ,EMatrixDummyArg mwo_rhs 00090 ); 00091 00093 00096 00103 virtual mat_msns_mut_ptr_t clone_msns(); 00104 00110 virtual mat_msns_ptr_t clone_msns() const; 00111 00113 00114 protected: 00115 00118 00125 virtual void M_StMtInvMtM( 00126 MatrixSymOp* symwo_lhs, value_type alpha 00127 ,const MatrixOp& mwo, BLAS_Cpp::Transp mwo_trans 00128 ,EMatrixDummyArg 00129 ) const; 00130 00132 00133 public: 00134 00137 00138 mat_mns_mut_ptr_t clone_mns(); 00140 mat_mns_ptr_t clone_mns() const; 00142 00143 }; // end class MatrixSymNonsing 00144 00145 // //////////////////////////////////////////////////////////////////////////////////////////////// 00151 00152 inline 00154 void M_StMtInvMtM( 00155 MatrixSymOp* sym_gms_lhs, value_type alpha 00156 ,const MatrixOp& mwo 00157 ,BLAS_Cpp::Transp mwo_trans, const MatrixSymNonsing& mswof 00158 ,MatrixSymNonsing::EMatrixDummyArg mwo_rhs 00159 ) 00160 { 00161 mswof.M_StMtInvMtM(sym_gms_lhs,alpha,mwo,mwo_trans,mwo_rhs); 00162 } 00163 00165 00166 } // end namespace AbstractLinAlgPack 00167 00168 #endif // ABSTRACT_LINALG_PACK_MATRIX_SYM_NONSINGULAR_H
1.7.4