|
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 SLAP_MATRIX_SYM_WITH_OP_SERIAL_H 00030 #define SLAP_MATRIX_SYM_WITH_OP_SERIAL_H 00031 00032 #include "AbstractLinAlgPack_MatrixOpSerial.hpp" 00033 #include "AbstractLinAlgPack_MatrixSymOp.hpp" 00034 00035 namespace AbstractLinAlgPack { 00036 00046 class MatrixSymOpSerial 00047 : virtual public MatrixOpSerial 00048 , virtual public AbstractLinAlgPack::MatrixSymOp // doxygen needs full name 00049 { 00050 public: 00051 00053 using MatrixSymOp::Mp_StPtMtP; 00054 00061 virtual void Mp_StPtMtP( 00062 DMatrixSliceSym* sym_lhs, value_type alpha 00063 ,EMatRhsPlaceHolder dummy_place_holder 00064 ,const GenPermMatrixSlice& gpms_rhs, BLAS_Cpp::Transp gpms_rhs_trans 00065 ,value_type beta 00066 ) const; 00067 00074 virtual void Mp_StMtMtM( 00075 DMatrixSliceSym* sym_lhs, value_type alpha 00076 ,EMatRhsPlaceHolder dummy_place_holder 00077 ,const MatrixOpSerial& mwo_rhs, BLAS_Cpp::Transp mwo_rhs_trans 00078 ,value_type beta 00079 ) const; 00080 00083 00085 const VectorSpace& space_rows() const; 00086 00088 void Mp_StPtMtP( 00089 MatrixSymOp* symwo_lhs, value_type alpha 00090 ,EMatRhsPlaceHolder dummy_place_holder 00091 ,const GenPermMatrixSlice& gpms_rhs, BLAS_Cpp::Transp gpms_rhs_trans 00092 ,value_type beta 00093 ) const; 00094 00096 void Mp_StMtMtM( 00097 MatrixSymOp* symwo_lhs, value_type alpha 00098 ,EMatRhsPlaceHolder dummy_place_holder 00099 ,const MatrixOp& mwo_rhs, BLAS_Cpp::Transp mwo_rhs_trans 00100 ,value_type beta 00101 ) const; 00102 00104 00105 }; // end class MatrixSymOpSerial 00106 00110 00111 inline 00113 void Mp_StPtMtP( 00114 DMatrixSliceSym* sym_lhs, value_type alpha 00115 ,MatrixSymOpSerial::EMatRhsPlaceHolder dummy_place_holder 00116 ,const MatrixSymOpSerial& M 00117 ,const GenPermMatrixSlice& gpms_rhs, BLAS_Cpp::Transp gpms_rhs_trans 00118 ,value_type beta = 1.0 00119 ) 00120 { 00121 M.Mp_StPtMtP(sym_lhs,alpha,dummy_place_holder,gpms_rhs,gpms_rhs_trans,beta); 00122 } 00123 00124 inline 00126 void Mp_StMtMtM( 00127 DMatrixSliceSym* sym_lhs, value_type alpha 00128 ,MatrixSymOpSerial::EMatRhsPlaceHolder dummy_place_holder 00129 ,const MatrixSymOpSerial& M 00130 ,const MatrixOpSerial& mwo_rhs, BLAS_Cpp::Transp mwo_rhs_trans 00131 ,value_type beta = 1.0 00132 ) 00133 { 00134 M.Mp_StMtMtM(sym_lhs,alpha,dummy_place_holder,mwo_rhs,mwo_rhs_trans,beta); 00135 } 00136 00138 00139 } // end namespace AbstractLinAlgPack 00140 00141 #endif // SLAP_MATRIX_SYM_WITH_OP_SERIAL_H
1.7.4