ROL
|
This class adds a solve method. More...
#include <InnerProductMatrix.hpp>
Public Member Functions | |
InnerProductMatrixSolver (ROL::Ptr< Teuchos::LAPACK< int, Real > > lapack, const std::vector< Real > &U=std::vector< Real >(), const std::vector< Real > &V=std::vector< Real >(), const std::vector< Real > &w=std::vector< Real >(), const int a=1) | |
InnerProductMatrixSolver (ROL::Ptr< Teuchos::LAPACK< int, Real > > lapack, const std::vector< Real > &U=std::vector< Real >(), const std::vector< Real > &V=std::vector< Real >(), const std::vector< Real > &w=std::vector< Real >(), const std::vector< Real > &a=std::vector< Real >()) | |
void | solve (ROL::Ptr< const std::vector< Real > > bp, ROL::Ptr< std::vector< Real > > xp) |
solve \(Mx=b\) for \(x\) More... | |
Real | inv_inner (ROL::Ptr< const std::vector< Real > > up, ROL::Ptr< const std::vector< Real > > vp) |
Compute the inner product \(u^\top M^{-1} v\). More... | |
Public Member Functions inherited from InnerProductMatrix< Real > | |
InnerProductMatrix (const std::vector< Real > &U, const std::vector< Real > &V, const std::vector< Real > &w, const int a=1) | |
InnerProductMatrix (const std::vector< Real > &U, const std::vector< Real > &V, const std::vector< Real > &w, const std::vector< Real > &a) | |
InnerProductMatrix (InnerProductMatrix< Real > *ipm) | |
void | update (const std::vector< Real > &a) |
virtual | ~InnerProductMatrix () |
void | apply (ROL::Ptr< const std::vector< Real > > xp, ROL::Ptr< std::vector< Real > > bp) |
void | applyadd (ROL::Ptr< const std::vector< Real > > xp, ROL::Ptr< std::vector< Real > > bp) |
void | applyaddtimes (ROL::Ptr< const std::vector< Real > > xp, ROL::Ptr< std::vector< Real > > bp, Real factor) |
Real | inner (ROL::Ptr< const std::vector< Real > > up, ROL::Ptr< const std::vector< Real > > vp) |
Compute the inner product \(u^\top M v\). More... | |
Private Attributes | |
ROL::Ptr< Teuchos::LAPACK< int, Real > > | lapack_ |
const int | ni_ |
const int | nq_ |
std::vector< Real > | M_ |
const char | TRANS_ |
std::vector< int > | ipiv_ |
std::vector< Real > | PLU_ |
const int | nrhs_ |
int | info_ |
Additional Inherited Members | |
Protected Attributes inherited from InnerProductMatrix< Real > | |
const int | nq_ |
const int | ni_ |
const std::vector< Real > | U_ |
const std::vector< Real > | V_ |
const std::vector< Real > | w_ |
std::vector< Real > | M_ |
This class adds a solve method.
Definition at line 168 of file InnerProductMatrix.hpp.
InnerProductMatrixSolver< Real >::InnerProductMatrixSolver | ( | ROL::Ptr< Teuchos::LAPACK< int, Real > > | lapack, |
const std::vector< Real > & | U = std::vector<Real>() , |
||
const std::vector< Real > & | V = std::vector<Real>() , |
||
const std::vector< Real > & | w = std::vector<Real>() , |
||
const int | a = 1 |
||
) |
Definition at line 204 of file InnerProductMatrix.hpp.
References InnerProductMatrixSolver< Real >::info_, InnerProductMatrixSolver< Real >::ipiv_, InnerProductMatrixSolver< Real >::M_, InnerProductMatrixSolver< Real >::ni_, and InnerProductMatrixSolver< Real >::PLU_.
InnerProductMatrixSolver< Real >::InnerProductMatrixSolver | ( | ROL::Ptr< Teuchos::LAPACK< int, Real > > | lapack, |
const std::vector< Real > & | U = std::vector<Real>() , |
||
const std::vector< Real > & | V = std::vector<Real>() , |
||
const std::vector< Real > & | w = std::vector<Real>() , |
||
const std::vector< Real > & | a = std::vector<Real>() |
||
) |
Definition at line 224 of file InnerProductMatrix.hpp.
References InnerProductMatrixSolver< Real >::info_, InnerProductMatrixSolver< Real >::ipiv_, InnerProductMatrixSolver< Real >::M_, InnerProductMatrixSolver< Real >::ni_, and InnerProductMatrixSolver< Real >::PLU_.
|
virtual |
solve \(Mx=b\) for \(x\)
Reimplemented from InnerProductMatrix< Real >.
Definition at line 245 of file InnerProductMatrix.hpp.
|
virtual |
Compute the inner product \(u^\top M^{-1} v\).
Reimplemented from InnerProductMatrix< Real >.
Definition at line 259 of file InnerProductMatrix.hpp.
References ROL::solve().
|
private |
Definition at line 171 of file InnerProductMatrix.hpp.
|
private |
Definition at line 172 of file InnerProductMatrix.hpp.
Referenced by InnerProductMatrixSolver< Real >::InnerProductMatrixSolver().
|
private |
Definition at line 173 of file InnerProductMatrix.hpp.
|
private |
Definition at line 174 of file InnerProductMatrix.hpp.
Referenced by InnerProductMatrixSolver< Real >::InnerProductMatrixSolver().
|
private |
Definition at line 175 of file InnerProductMatrix.hpp.
|
private |
Definition at line 176 of file InnerProductMatrix.hpp.
Referenced by InnerProductMatrixSolver< Real >::InnerProductMatrixSolver().
|
private |
Definition at line 177 of file InnerProductMatrix.hpp.
Referenced by InnerProductMatrixSolver< Real >::InnerProductMatrixSolver().
|
private |
Definition at line 178 of file InnerProductMatrix.hpp.
|
private |
Definition at line 179 of file InnerProductMatrix.hpp.
Referenced by InnerProductMatrixSolver< Real >::InnerProductMatrixSolver().