38 #ifndef ROL_SCHURCOMPLEMENT_H
39 #define ROL_SCHURCOMPLEMENT_H
92 ROL::Ptr<OP> &C, ROL::Ptr<OP> &D,
93 ROL::Ptr<V> &scratch1 ) :
94 A_(A), B_(B), C_(C), D_(D), scratch1_(scratch1) {
96 U_ = ROL::makePtr<UPPER>(
B_);
97 L_ = ROL::makePtr<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_ = ROL::makePtr<UPPER>(
B_);
113 L_ = ROL::makePtr<LOWER>(
C_);
120 L_->applyInverse(Hv,v,tol);
128 U_->applyInverse(Hv,v,tol);
132 return ROL::makePtr<BlockOperator2Determinant<Real>>(
A_,
B_,
C_,
D_,scratch1_);
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.
SchurComplement(ROL::Ptr< OP > &A, ROL::Ptr< OP > &B, ROL::Ptr< OP > &C, ROL::Ptr< OP > &D, ROL::Ptr< V > &scratch1)
Defines the linear algebra of vector space on a generic partitioned vector.
Defines the linear algebra or vector space interface.
BlockOperator2UnitUpper UPPER
ROL::Ptr< OP > getS11(void)
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
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)
SchurComplement(BlockOperator2< Real > &op, ROL::Ptr< Vector< Real > > &scratch1)
LinearOperator< Real > OP
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)