AbstractLinAlgPack: C++ Interfaces For Vectors, Matrices And Related Linear Algebra Objects  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AbstractLinAlgPack_BasisSystemPerm.hpp
1 // @HEADER
2 // ***********************************************************************
3 //
4 // Moocho: Multi-functional Object-Oriented arCHitecture for Optimization
5 // Copyright (2003) Sandia Corporation
6 //
7 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
8 // license for use of this work by or on behalf of the U.S. Government.
9 //
10 // Redistribution and use in source and binary forms, with or without
11 // modification, are permitted provided that the following conditions are
12 // met:
13 //
14 // 1. Redistributions of source code must retain the above copyright
15 // notice, this list of conditions and the following disclaimer.
16 //
17 // 2. Redistributions in binary form must reproduce the above copyright
18 // notice, this list of conditions and the following disclaimer in the
19 // documentation and/or other materials provided with the distribution.
20 //
21 // 3. Neither the name of the Corporation nor the names of the
22 // contributors may be used to endorse or promote products derived from
23 // this software without specific prior written permission.
24 //
25 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
26 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
29 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
33 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 //
37 // Questions? Contact Roscoe A. Bartlett (rabartl@sandia.gov)
38 //
39 // ***********************************************************************
40 // @HEADER
41 
42 #ifndef ABSTRACT_LIN_ALG_PACK_BASIS_PERM_SYSTEM_H
43 #define ABSTRACT_LIN_ALG_PACK_BASIS_PERM_SYSTEM_H
44 
45 #include "AbstractLinAlgPack_BasisSystem.hpp"
46 
47 namespace AbstractLinAlgPack {
48 
54 class BasisSystemPerm : public BasisSystem {
55 public:
56 
59 
61  typedef Teuchos::RCP<
63 
65 
66 
72  )
73  :BasisSystem(factory_transDtD,factory_S)
74  {}
75 
78 
80  virtual const perm_fcty_ptr_t factory_P_var() const = 0;
82  virtual const perm_fcty_ptr_t factory_P_equ() const = 0;
83 
85 
88 
93  virtual void set_basis(
94  const Permutation &P_var
95  ,const Range1D &var_dep
96  ,const Permutation *P_equ
97  ,const Range1D *equ_decomp
98  ,const MatrixOp &Gc
99  ,MatrixOpNonsing *C
100  ,MatrixOp *D
101  ,MatrixOp *GcUP
102  ,EMatRelations mat_rel = MATRICES_INDEP_IMPS
103  ,std::ostream *out = NULL
104  ) = 0;
105 
110  virtual void select_basis(
111  const Vector *nu
112  ,MatrixOp *Gc
113  ,Permutation *P_var
114  ,Range1D *var_dep
115  ,Permutation *P_equ
117  ,MatrixOpNonsing *C
118  ,MatrixOp *D
119  ,MatrixOp *GcUP
120  ,EMatRelations mat_rel = MATRICES_INDEP_IMPS
121  ,std::ostream *out = NULL
122  ) = 0;
123 
125 
126 private:
127  // not defined and not to be called
128  BasisSystemPerm();
129 
130 }; // end class BasisSystemPerm
131 
132 } // end namespace AbstractLinAlgPack
133 
134 #endif // ABSTRACT_LIN_ALG_PACK_BASIS_PERM_SYSTEM_H
Interface for the creation and maintainance of a basis matrix for a decomposition of linearlized cons...
Abstract interface for immutable, finite dimensional, coordinate vectors {abstract}.
virtual void set_basis(const Permutation &P_var, const Range1D &var_dep, const Permutation *P_equ, const Range1D *equ_decomp, const MatrixOp &Gc, MatrixOpNonsing *C, MatrixOp *D, MatrixOp *GcUP, EMatRelations mat_rel=MATRICES_INDEP_IMPS, std::ostream *out=NULL)=0
Factor a basis selected by the client.
virtual const perm_fcty_ptr_t factory_P_equ() const =0
BasisSystemPerm(const mat_sym_fcty_ptr_t &factory_transDtD, const mat_sym_nonsing_fcty_ptr_t &factory_S)
Required constructor (calls initialize()).
virtual void select_basis(const Vector *nu, MatrixOp *Gc, Permutation *P_var, Range1D *var_dep, Permutation *P_equ, Range1D *equ_decomp, MatrixOpNonsing *C, MatrixOp *D, MatrixOp *GcUP, EMatRelations mat_rel=MATRICES_INDEP_IMPS, std::ostream *out=NULL)=0
Select a basis.
virtual const perm_fcty_ptr_t factory_P_var() const =0
Base class for all matrices that support basic matrix operations.
virtual Range1D var_dep() const =0
Range of dependent (basic) variables.
Abstract interface to permutation matrices.
virtual Range1D equ_decomp() const
Range of decomposed general equality constraints.
virtual const mat_sym_nonsing_fcty_ptr_t factory_S() const
Returns a matrix factory for the result of S = I + D'*D
virtual const mat_sym_fcty_ptr_t factory_transDtD() const
Returns a matrix factory for the result of J = D'*D
Interface for setting and selecting a basis from the Jacobian from a set of equations.
Abstract base class for all nonsingular polymorphic matrices that can be used to compute matrix-vecto...
Teuchos::RCP< const Teuchos::AbstractFactory< Permutation > > perm_fcty_ptr_t