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 177 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 213 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 233 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 254 of file InnerProductMatrix.hpp.
|
virtual |
Compute the inner product \(u^\top M^{-1} v\).
Reimplemented from InnerProductMatrix< Real >.
Definition at line 268 of file InnerProductMatrix.hpp.
References ROL::solve().
|
private |
Definition at line 180 of file InnerProductMatrix.hpp.
|
private |
Definition at line 181 of file InnerProductMatrix.hpp.
Referenced by InnerProductMatrixSolver< Real >::InnerProductMatrixSolver().
|
private |
Definition at line 182 of file InnerProductMatrix.hpp.
|
private |
Definition at line 183 of file InnerProductMatrix.hpp.
Referenced by InnerProductMatrixSolver< Real >::InnerProductMatrixSolver().
|
private |
Definition at line 184 of file InnerProductMatrix.hpp.
|
private |
Definition at line 185 of file InnerProductMatrix.hpp.
Referenced by InnerProductMatrixSolver< Real >::InnerProductMatrixSolver().
|
private |
Definition at line 186 of file InnerProductMatrix.hpp.
Referenced by InnerProductMatrixSolver< Real >::InnerProductMatrixSolver().
|
private |
Definition at line 187 of file InnerProductMatrix.hpp.
|
private |
Definition at line 188 of file InnerProductMatrix.hpp.
Referenced by InnerProductMatrixSolver< Real >::InnerProductMatrixSolver().