AbstractLinAlgPack_MultiVectorMutableCols.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 SLAP_MULTI_VECTOR_MUTABLE_COlS_H
00030 #define SLAP_MULTI_VECTOR_MUTABLE_COlS_H
00031 
00032 #include <vector>
00033 
00034 #include "AbstractLinAlgPack_Types.hpp"
00035 #include "AbstractLinAlgPack_MultiVectorMutable.hpp"
00036 #include "AbstractLinAlgPack_VectorSpace.hpp"
00037 #include "AbstractLinAlgPack_VectorMutable.hpp"
00038 
00039 namespace AbstractLinAlgPack {
00040 
00055 class MultiVectorMutableCols
00056   : virtual public AbstractLinAlgPack::MultiVectorMutable
00057 {
00058 public:
00059 
00062 
00064   MultiVectorMutableCols();
00065 
00067   MultiVectorMutableCols(
00068     const  Teuchos::RCP<const VectorSpace>   &space_cols
00069     ,const  Teuchos::RCP<const VectorSpace>  &space_rows
00070     ,Teuchos::RCP<VectorMutable>       col_vecs[] = NULL
00071     );
00072   
00105   void initialize(
00106     const  Teuchos::RCP<const VectorSpace>   &space_cols
00107     ,const  Teuchos::RCP<const VectorSpace>  &space_rows
00108     ,Teuchos::RCP<VectorMutable>       col_vecs[] = NULL
00109     );
00110 
00112   void set_uninitialized();
00113 
00115 
00118 
00120   size_type rows() const;
00122   size_type cols() const;
00123 
00125   
00128 
00130   const VectorSpace& space_cols() const;
00132   const VectorSpace& space_rows() const;
00134   void zero_out();
00136   void Mt_S( value_type alpha );
00138   MatrixOp& operator=(const MatrixOp& mwo_rhs);
00140   mat_mut_ptr_t clone();
00142   mat_ptr_t clone() const;
00144   void Vp_StMtV(
00145     VectorMutable* v_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs1
00146     , const Vector& v_rhs2, value_type beta) const;
00148   void Vp_StMtV(
00149     VectorMutable* v_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs1
00150     , const SpVectorSlice& sv_rhs2, value_type beta) const;
00152   bool syrk(
00153      BLAS_Cpp::Transp M_trans, value_type alpha
00154     , value_type beta, MatrixSymOp* sym_lhs ) const;
00155 
00158 
00159   access_by_t access_by() const;
00161 
00165   vec_mut_ptr_t col(index_type j);
00167   vec_mut_ptr_t row(index_type i);
00169   vec_mut_ptr_t diag(int k);
00171   multi_vec_mut_ptr_t mv_sub_view(const Range1D& row_rng, const Range1D& col_rng);
00173 
00174 private:
00175   
00176 #ifdef DOXYGEN_COMPILE
00177   const VectorSpace                  *space_cols;
00178   const VectorSpace                  *space_rows;
00179   VectorMutable                *column_vectors;
00180 #else
00181   Teuchos::RCP<const VectorSpace>                  space_cols_;
00182   Teuchos::RCP<const VectorSpace>                  space_rows_;
00183   std::vector< Teuchos::RCP<VectorMutable> > col_vecs_;
00184 #endif
00185   
00186 }; // end class MultiVectorMutableCols
00187 
00188 } // end namespace AbstractLinAlgPack
00189 
00190 #endif // SLAP_MULTI_VECTOR_MUTABLE_COlS_H

Generated on Tue Oct 20 12:51:43 2009 for MOOCHO (Single Doxygen Collection) by doxygen 1.4.7