38 #ifndef ROL_SCHURCOMPLEMENT_H 39 #define ROL_SCHURCOMPLEMENT_H 84 Teuchos::RCP<OP> L_,
U_;
92 Teuchos::RCP<OP> &C, Teuchos::RCP<OP> &D,
93 Teuchos::RCP<V> &scratch1 ) :
94 A_(A), B_(B), C_(C), D_(D), scratch1_(scratch1) {
96 U_ = rcp(
new UPPER(B_) );
97 L_ = rcp(
new LOWER(C_) );
103 scratch1_(scratch1) {}
107 A_ = op.getOperator(0,0);
108 B_ = op.getOperator(0,1);
109 C_ = op.getOperator(1,0);
110 D_ = op.getOperator(1,1);
112 U_ = rcp(
new UPPER(B_) );
113 L_ = rcp(
new LOWER(C_) );
120 L_->applyInverse(Hv,v,tol);
128 U_->applyInverse(Hv,v,tol);
136 D_->applyInverse(Hv2,v2,tol);
144 #endif // ROL_SCHURCOMPLEMENT_H void solve2(Vector< Real > &Hv2, const Vector< Real > &v2, Real &tol)
Provides the interface to apply a 2x2 block unit upper operator to a partitioned vector.
Defines the linear algebra of vector space on a generic partitioned vector.
Provides the interface to the block determinant of a 2x2 block operator
Defines the linear algebra or vector space interface.
Teuchos::RCP< V > scratch1_
BlockOperator2UnitUpper UPPER
BlockOperator2UnitLower LOWER
Provides the interface to apply a linear operator.
Provides the interface to apply a 2x2 block unit lower operator to a partitioned vector.
PartitionedVector< Real > PV
SchurComplement(BlockOperator2< Real > &op, Teuchos::RCP< Vector< Real > > &scratch1)
void applyUpperInverse(Vector< Real > &Hv, const Vector< Real > &v, Real &tol)
Provides the interface to apply a 2x2 block operator to a partitioned vector.
void applyUpper(Vector< Real > &Hv, const Vector< Real > &v, Real &tol)
void applyLower(Vector< Real > &Hv, const Vector< Real > &v, Real &tol)
LinearOperator< Real > OP
SchurComplement(Teuchos::RCP< OP > &A, Teuchos::RCP< OP > &B, Teuchos::RCP< OP > &C, Teuchos::RCP< OP > &D, Teuchos::RCP< V > &scratch1)
Given a 2x2 block operator, perform the Schur reduction and return the decoupled system components...
void applyLowerInverse(Vector< Real > &Hv, const Vector< Real > &v, Real &tol)
Teuchos::RCP< OP > getS11(void)