|
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 Real orthTol=1e-8, const int orthIt=2, const bool truncate=false, const unsigned dom_seed=0, const unsigned rng_seed=0) | |
| void | setStream (Ptr< std::ostream > &out) |
| void | setRank (const int rank) |
| void | update (void) |
| void | update (UpdateType type) |
| int | advance (const Real nu, Vector< Real > &h, const int col, const Real eta=1.0) |
| int | reconstruct (Vector< Real > &a, const int col) |
| bool | test (const int rank, std::ostream &outStream=std::cout, const int verbosity=0) |
Private Member Functions | |
| int | computeP (void) |
| void | mgs2 (std::vector< Ptr< Vector< Real > > > &Y) const |
| int | computeQ (void) |
| int | LSsolver (LA::Matrix< Real > &A, LA::Matrix< Real > &B, const bool trans=false) const |
| int | lowRankApprox (LA::Matrix< Real > &A, const int r) const |
| int | computeC (void) |
| void | reset (void) |
| bool | testQ (std::ostream &outStream=std::cout, const int verbosity=0) |
| bool | testP (std::ostream &outStream=std::cout, const int verbosity=0) |
Private Attributes | |
| std::vector< Ptr< Vector< Real > > > | Upsilon_ |
| std::vector< Ptr< Vector< Real > > > | Phi_ |
| std::vector< Ptr< Vector< Real > > > | Y_ |
| LA::Matrix< Real > | Omega_ |
| LA::Matrix< Real > | Psi_ |
| LA::Matrix< Real > | X_ |
| LA::Matrix< Real > | Z_ |
| LA::Matrix< Real > | C_ |
| int | maxRank_ |
| int | ncol_ |
| int | rank_ |
| int | k_ |
| int | s_ |
| const Real | orthTol_ |
| const int | orthIt_ |
| const bool | truncate_ |
| LAPACK< int, Real > | lapack_ |
| bool | flagP_ |
| bool | flagQ_ |
| bool | flagC_ |
| Ptr< std::ostream > | out_ |
| Ptr< Elementwise::NormalRandom< Real > > | nrand_ |
| Ptr< std::mt19937_64 > | gen_ |
| Ptr< std::normal_distribution< Real > > | dist_ |
Provides an interface for randomized sketching.
Definition at line 65 of file ROL_Sketch.hpp.
|
inlinevirtual |
Definition at line 288 of file ROL_Sketch.hpp.
|
inline |
|
inlineprivate |
Definition at line 87 of file ROL_Sketch.hpp.
References flagP_, k_, lapack_, ncol_, and X_.
Referenced by computeC(), reconstruct(), and testP().
|
inlineprivate |
Definition at line 114 of file ROL_Sketch.hpp.
References k_, orthIt_, orthTol_, and ROL::ROL_EPSILON().
Referenced by computeQ().
|
inlineprivate |
Definition at line 146 of file ROL_Sketch.hpp.
References flagQ_, mgs2(), and Y_.
Referenced by computeC(), reconstruct(), and testQ().
|
inlineprivate |
|
inlineprivate |
Definition at line 174 of file ROL_Sketch.hpp.
Referenced by computeC().
|
inlineprivate |
Definition at line 205 of file ROL_Sketch.hpp.
References C_, computeP(), computeQ(), flagC_, k_, lowRankApprox(), LSsolver(), ncol_, Phi_, Psi_, rank_, s_, truncate_, X_, Y_, Z_, and zero.
Referenced by reconstruct().
|
inlineprivate |
|
inline |
Definition at line 325 of file ROL_Sketch.hpp.
References out_.
|
inline |
|
inline |
|
inline |
Definition at line 367 of file ROL_Sketch.hpp.
References ROL::Accept, flagC_, flagP_, flagQ_, ROL::Initial, reset(), ROL::Revert, ROL::Temp, and ROL::Trial.
|
inline |
|
inline |
Definition at line 423 of file ROL_Sketch.hpp.
References ROL::Vector< Real >::axpy(), C_, computeC(), computeP(), computeQ(), k_, ncol_, ROL::Vector< Real >::norm(), out_, X_, Y_, ROL::Vector< Real >::zero(), and zero.
Referenced by test().
|
inline |
Definition at line 466 of file ROL_Sketch.hpp.
References advance(), ncol_, reconstruct(), ROL::ROL_EPSILON(), testP(), testQ(), update(), and Y_.
Referenced by main().
|
inlineprivate |
Definition at line 515 of file ROL_Sketch.hpp.
References computeQ(), k_, ROL::ROL_EPSILON(), and Y_.
Referenced by test().
|
inlineprivate |
Definition at line 553 of file ROL_Sketch.hpp.
References computeP(), k_, ncol_, ROL::ROL_EPSILON(), X_, and zero.
Referenced by test().
|
private |
|
private |
Definition at line 67 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), reset(), setRank(), and Sketch().
|
private |
Definition at line 67 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), computeQ(), reconstruct(), reset(), setRank(), Sketch(), test(), and testQ().
|
private |
|
private |
Definition at line 68 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), reset(), setRank(), and Sketch().
|
private |
Definition at line 68 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), computeP(), reconstruct(), reset(), setRank(), Sketch(), and testP().
|
private |
Definition at line 68 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), reset(), setRank(), and Sketch().
|
private |
Definition at line 68 of file ROL_Sketch.hpp.
Referenced by computeC(), reconstruct(), reset(), setRank(), and Sketch().
|
private |
Definition at line 70 of file ROL_Sketch.hpp.
|
private |
Definition at line 70 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), computeP(), reconstruct(), reset(), setRank(), Sketch(), test(), and testP().
|
private |
Definition at line 70 of file ROL_Sketch.hpp.
Referenced by computeC(), setRank(), and Sketch().
|
private |
Definition at line 70 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), computeP(), mgs2(), reconstruct(), reset(), setRank(), Sketch(), testP(), and testQ().
|
private |
Definition at line 70 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), reset(), setRank(), and Sketch().
|
private |
Definition at line 72 of file ROL_Sketch.hpp.
|
private |
Definition at line 73 of file ROL_Sketch.hpp.
|
private |
Definition at line 75 of file ROL_Sketch.hpp.
Referenced by computeC(), and Sketch().
|
private |
Definition at line 77 of file ROL_Sketch.hpp.
Referenced by computeP(), lowRankApprox(), and LSsolver().
|
private |
Definition at line 79 of file ROL_Sketch.hpp.
Referenced by advance(), computeP(), Sketch(), update(), and update().
|
private |
Definition at line 79 of file ROL_Sketch.hpp.
Referenced by advance(), computeQ(), Sketch(), update(), and update().
|
private |
Definition at line 79 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), Sketch(), update(), and update().
|
private |
Definition at line 81 of file ROL_Sketch.hpp.
Referenced by advance(), reconstruct(), setRank(), setStream(), and Sketch().
|
private |
Definition at line 83 of file ROL_Sketch.hpp.
|
private |
Definition at line 84 of file ROL_Sketch.hpp.
Referenced by Sketch().
|
private |
Definition at line 85 of file ROL_Sketch.hpp.
Referenced by Sketch().