AbstractLinAlgPack_BasisSystemPerm.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 ABSTRACT_LIN_ALG_PACK_BASIS_PERM_SYSTEM_H
00030 #define ABSTRACT_LIN_ALG_PACK_BASIS_PERM_SYSTEM_H
00031 
00032 #include "AbstractLinAlgPack_BasisSystem.hpp"
00033 
00034 namespace AbstractLinAlgPack {
00035 
00041 class BasisSystemPerm : public BasisSystem {
00042 public:
00043 
00046 
00048   typedef Teuchos::RCP<
00049     const Teuchos::AbstractFactory<Permutation> >   perm_fcty_ptr_t;
00050 
00052 
00053 
00056   BasisSystemPerm(
00057     const mat_sym_fcty_ptr_t             &factory_transDtD
00058     ,const mat_sym_nonsing_fcty_ptr_t    &factory_S
00059     )
00060     :BasisSystem(factory_transDtD,factory_S)
00061       {}
00062 
00065 
00067   virtual const perm_fcty_ptr_t   factory_P_var() const = 0;
00069   virtual const perm_fcty_ptr_t   factory_P_equ() const = 0;
00070 
00072 
00075 
00080   virtual void set_basis(
00081     const Permutation          &P_var
00082     ,const Range1D             &var_dep
00083     ,const Permutation         *P_equ
00084     ,const Range1D             *equ_decomp
00085     ,const MatrixOp            &Gc
00086     ,MatrixOpNonsing           *C
00087     ,MatrixOp                  *D
00088     ,MatrixOp                  *GcUP
00089     ,EMatRelations             mat_rel = MATRICES_INDEP_IMPS
00090     ,std::ostream              *out    = NULL
00091     ) = 0;
00092 
00097   virtual void select_basis(
00098     const Vector               *nu
00099     ,MatrixOp                  *Gc
00100     ,Permutation               *P_var
00101     ,Range1D                   *var_dep
00102     ,Permutation               *P_equ
00103     ,Range1D                   *equ_decomp
00104     ,MatrixOpNonsing           *C
00105     ,MatrixOp                  *D
00106     ,MatrixOp                  *GcUP
00107     ,EMatRelations             mat_rel = MATRICES_INDEP_IMPS
00108     ,std::ostream              *out    = NULL
00109     ) = 0;
00110   
00112 
00113 private:
00114   // not defined and not to be called
00115   BasisSystemPerm();
00116 
00117 }; // end class BasisSystemPerm
00118 
00119 }  // end namespace AbstractLinAlgPack
00120 
00121 #endif // ABSTRACT_LIN_ALG_PACK_BASIS_PERM_SYSTEM_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 10:10:55 2011 for MOOCHO (Single Doxygen Collection) by  doxygen 1.6.3