10 #ifndef ROL_SCHURCOMPLEMENT_H
11 #define ROL_SCHURCOMPLEMENT_H
64 ROL::Ptr<OP> &C, ROL::Ptr<OP> &D,
65 ROL::Ptr<V> &scratch1 ) :
66 A_(A), B_(B), C_(C), D_(D), scratch1_(scratch1) {
68 U_ = ROL::makePtr<UPPER>(
B_);
69 L_ = ROL::makePtr<LOWER>(
C_);
75 scratch1_(scratch1) {}
79 A_ = op.getOperator(0,0);
80 B_ = op.getOperator(0,1);
81 C_ = op.getOperator(1,0);
82 D_ = op.getOperator(1,1);
84 U_ = ROL::makePtr<UPPER>(
B_);
85 L_ = ROL::makePtr<LOWER>(
C_);
92 L_->applyInverse(Hv,v,tol);
100 U_->applyInverse(Hv,v,tol);
104 return ROL::makePtr<BlockOperator2Determinant<Real>>(
A_,
B_,
C_,
D_,scratch1_);
108 D_->applyInverse(Hv2,v2,tol);
116 #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)