ROL
|
Provides an interface for randomized sketching. More...
#include <ROL_Sketch.hpp>
Public Member Functions | |
virtual | ~Sketch (void) |
Sketch (const Vector< Real > &x, const int ncol, const int rank, const int solverType=0) | |
void | setRank (const int rank) |
void | update (void) |
void | advance (const Real alpha, Vector< Real > &h, const int col, const Real beta=1.0) |
void | reconstruct (Vector< Real > &a, const int col) |
bool | test (const int rank, std::ostream &outStream=std::cout, const int verbosity=0) |
Private Member Functions | |
void | mgs (std::vector< Ptr< Vector< Real >>> &Y) const |
void | computeQ (void) |
void | computeX (void) |
bool | testQ (std::ostream &outStream=std::cout, const int verbosity=0) |
void | reset (void) |
Private Attributes | |
std::vector< Ptr< Vector< Real > > > | Psi_ |
std::vector< Ptr< Vector< Real > > > | Y_ |
LA::Matrix< Real > | Omega_ |
LA::Matrix< Real > | W_ |
int | ncol_ |
int | rank_ |
int | k_ |
int | l_ |
ROL::LAPACK< int, Real > | lapack_ |
int | solverType_ |
bool | flagQ_ |
bool | flagX_ |
Provides an interface for randomized sketching.
Definition at line 62 of file ROL_Sketch.hpp.
|
inlinevirtual |
Definition at line 192 of file ROL_Sketch.hpp.
|
inline |
Definition at line 194 of file ROL_Sketch.hpp.
References ROL::Vector< Real >::clone(), ROL::Sketch< Real >::k_, ROL::Sketch< Real >::l_, ROL::Sketch< Real >::ncol_, ROL::Sketch< Real >::Omega_, ROL::Sketch< Real >::Psi_, ROL::Sketch< Real >::rank_, ROL::Sketch< Real >::reset(), ROL::Sketch< Real >::W_, and ROL::Sketch< Real >::Y_.
|
inlineprivate |
Definition at line 75 of file ROL_Sketch.hpp.
References ROL::Sketch< Real >::k_.
Referenced by ROL::Sketch< Real >::computeQ().
|
inlineprivate |
Definition at line 90 of file ROL_Sketch.hpp.
References ROL::Sketch< Real >::flagQ_, ROL::Sketch< Real >::mgs(), and ROL::Sketch< Real >::Y_.
Referenced by ROL::Sketch< Real >::computeX(), ROL::Sketch< Real >::reconstruct(), and ROL::Sketch< Real >::testQ().
|
inlineprivate |
Definition at line 98 of file ROL_Sketch.hpp.
References ROL::Sketch< Real >::computeQ(), ROL::Sketch< Real >::flagX_, ROL::Sketch< Real >::k_, ROL::Sketch< Real >::l_, ROL::Sketch< Real >::lapack_, ROL::Sketch< Real >::ncol_, ROL::Sketch< Real >::Psi_, ROL::Sketch< Real >::solverType_, ROL::Sketch< Real >::W_, and ROL::Sketch< Real >::Y_.
Referenced by ROL::Sketch< Real >::reconstruct().
|
inlineprivate |
Definition at line 137 of file ROL_Sketch.hpp.
References ROL::Sketch< Real >::computeQ(), ROL::Sketch< Real >::k_, and ROL::Sketch< Real >::Y_.
Referenced by ROL::Sketch< Real >::test().
|
inlineprivate |
Definition at line 172 of file ROL_Sketch.hpp.
References ROL::Sketch< Real >::k_, ROL::Sketch< Real >::l_, ROL::Sketch< Real >::ncol_, ROL::Sketch< Real >::Omega_, ROL::Sketch< Real >::Psi_, ROL::Sketch< Real >::W_, and ROL::Sketch< Real >::Y_.
Referenced by ROL::Sketch< Real >::Sketch(), and ROL::Sketch< Real >::update().
|
inline |
Definition at line 212 of file ROL_Sketch.hpp.
References ROL::Sketch< Real >::k_, ROL::Sketch< Real >::l_, ROL::Sketch< Real >::ncol_, ROL::Sketch< Real >::rank_, and ROL::Sketch< Real >::update().
|
inline |
Definition at line 220 of file ROL_Sketch.hpp.
References ROL::Sketch< Real >::flagQ_, ROL::Sketch< Real >::flagX_, and ROL::Sketch< Real >::reset().
Referenced by ROL::Sketch< Real >::setRank(), and ROL::Sketch< Real >::test().
|
inline |
Definition at line 227 of file ROL_Sketch.hpp.
References ROL::Vector< Real >::dot(), ROL::Sketch< Real >::flagQ_, ROL::Sketch< Real >::flagX_, ROL::Sketch< Real >::k_, ROL::Sketch< Real >::l_, ROL::Sketch< Real >::ncol_, ROL::Sketch< Real >::Omega_, ROL::Sketch< Real >::Psi_, ROL::Sketch< Real >::W_, and ROL::Sketch< Real >::Y_.
Referenced by ROL::Sketch< Real >::test().
|
inline |
Definition at line 251 of file ROL_Sketch.hpp.
References ROL::Vector< Real >::axpy(), ROL::Sketch< Real >::computeQ(), ROL::Sketch< Real >::computeX(), ROL::Sketch< Real >::k_, ROL::Sketch< Real >::ncol_, ROL::Sketch< Real >::W_, ROL::Sketch< Real >::Y_, and ROL::Vector< Real >::zero().
Referenced by ROL::Sketch< Real >::test().
|
inline |
Definition at line 267 of file ROL_Sketch.hpp.
References ROL::Sketch< Real >::advance(), ROL::Sketch< Real >::ncol_, ROL::Sketch< Real >::reconstruct(), ROL::Sketch< Real >::testQ(), ROL::Sketch< Real >::update(), and ROL::Sketch< Real >::Y_.
Referenced by main().
|
private |
Definition at line 64 of file ROL_Sketch.hpp.
Referenced by ROL::Sketch< Real >::advance(), ROL::Sketch< Real >::computeX(), ROL::Sketch< Real >::reset(), and ROL::Sketch< Real >::Sketch().
|
private |
Definition at line 64 of file ROL_Sketch.hpp.
Referenced by ROL::Sketch< Real >::advance(), ROL::Sketch< Real >::computeQ(), ROL::Sketch< Real >::computeX(), ROL::Sketch< Real >::reconstruct(), ROL::Sketch< Real >::reset(), ROL::Sketch< Real >::Sketch(), ROL::Sketch< Real >::test(), and ROL::Sketch< Real >::testQ().
|
private |
Definition at line 66 of file ROL_Sketch.hpp.
Referenced by ROL::Sketch< Real >::advance(), ROL::Sketch< Real >::reset(), and ROL::Sketch< Real >::Sketch().
|
private |
Definition at line 66 of file ROL_Sketch.hpp.
Referenced by ROL::Sketch< Real >::advance(), ROL::Sketch< Real >::computeX(), ROL::Sketch< Real >::reconstruct(), ROL::Sketch< Real >::reset(), and ROL::Sketch< Real >::Sketch().
|
private |
Definition at line 68 of file ROL_Sketch.hpp.
Referenced by ROL::Sketch< Real >::advance(), ROL::Sketch< Real >::computeX(), ROL::Sketch< Real >::reconstruct(), ROL::Sketch< Real >::reset(), ROL::Sketch< Real >::setRank(), ROL::Sketch< Real >::Sketch(), and ROL::Sketch< Real >::test().
|
private |
Definition at line 68 of file ROL_Sketch.hpp.
Referenced by ROL::Sketch< Real >::setRank(), and ROL::Sketch< Real >::Sketch().
|
private |
Definition at line 68 of file ROL_Sketch.hpp.
Referenced by ROL::Sketch< Real >::advance(), ROL::Sketch< Real >::computeX(), ROL::Sketch< Real >::mgs(), ROL::Sketch< Real >::reconstruct(), ROL::Sketch< Real >::reset(), ROL::Sketch< Real >::setRank(), ROL::Sketch< Real >::Sketch(), and ROL::Sketch< Real >::testQ().
|
private |
Definition at line 68 of file ROL_Sketch.hpp.
Referenced by ROL::Sketch< Real >::advance(), ROL::Sketch< Real >::computeX(), ROL::Sketch< Real >::reset(), ROL::Sketch< Real >::setRank(), and ROL::Sketch< Real >::Sketch().
|
private |
Definition at line 70 of file ROL_Sketch.hpp.
Referenced by ROL::Sketch< Real >::computeX().
|
private |
Definition at line 71 of file ROL_Sketch.hpp.
Referenced by ROL::Sketch< Real >::computeX().
|
private |
Definition at line 73 of file ROL_Sketch.hpp.
Referenced by ROL::Sketch< Real >::advance(), ROL::Sketch< Real >::computeQ(), and ROL::Sketch< Real >::update().
|
private |
Definition at line 73 of file ROL_Sketch.hpp.
Referenced by ROL::Sketch< Real >::advance(), ROL::Sketch< Real >::computeX(), and ROL::Sketch< Real >::update().