AbstractLinAlgPack_MatrixSymIdent.hpp

Go to the documentation of this file.
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 ALAP_MATRIX_SYM_IDENTITY_H
00030 #define ALAP_MATRIX_SYM_IDENTITY_H
00031 
00032 #include "AbstractLinAlgPack_MatrixSymOpNonsing.hpp"
00033 #include "AbstractLinAlgPack_VectorSpace.hpp"
00034 
00035 namespace AbstractLinAlgPack {
00036 
00041 class MatrixSymIdent : virtual public MatrixSymOpNonsing {
00042 public:
00043   
00046 
00048   MatrixSymIdent(
00049     const VectorSpace::space_ptr_t&          vec_space = Teuchos::null
00050     ,const value_type                        scale     = 1.0
00051     );
00052 
00054   void initialize(
00055     const VectorSpace::space_ptr_t&          vec_space
00056     ,const value_type                        scale       = 1.0
00057   );
00058 
00060 
00063 
00065   value_type scale() const;
00066 
00068 
00071 
00073   size_type rows() const;
00075   size_type nz() const;
00076 
00078 
00081 
00083   const VectorSpace& space_cols() const;
00085   std::ostream& output(std::ostream& out) const;
00087   void Vp_StMtV(
00088     VectorMutable* v_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs1
00089     ,const Vector& v_rhs2, value_type beta ) const;
00090 
00092 
00095 
00097   void V_InvMtV(
00098     VectorMutable* v_lhs, BLAS_Cpp::Transp trans_rhs1
00099     ,const Vector& v_rhs2 ) const;
00100 
00102 
00103 private:
00104 
00105   VectorSpace::space_ptr_t  vec_space_;
00106   value_type                scale_;
00107   
00108 }; // end class MatrixSymIdent
00109 
00110 // ///////////////////////////////////////////
00111 // Inline members
00112 
00113 inline
00114 value_type MatrixSymIdent::scale() const
00115 {
00116   return scale_;
00117 }
00118 
00119 } // end namespace AbstractLinAlgPack
00120 
00121 #endif // ALAP_MATRIX_SYM_IDENTITY_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 10:10:56 2011 for MOOCHO (Single Doxygen Collection) by  doxygen 1.6.3