|
ROL
|
Provides an interface for randomized sketching. More...
#include <ROL_Sketch.hpp>
Public Member Functions | |
| virtual | ~Sketch (void) |
| Sketch (const Vector< Real > &x, int ncol, int rank, Real orthTol=1e-8, int orthIt=2, bool truncate=false, unsigned dom_seed=0, unsigned rng_seed=0) | |
| void | setStream (Ptr< std::ostream > &out) |
| void | reset (bool randomize=true) |
| void | setRank (int rank) |
| void | update (void) |
| int | advance (Real nu, const Vector< Real > &h, int col, 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 | |
| void | mgs2 (std::vector< Ptr< Vector< Real > > > &Y) const |
| int | LSsolver (LA::Matrix< Real > &A, LA::Matrix< Real > &B, bool trans=false) const |
| int | lowRankApprox (LA::Matrix< Real > &A, int r) const |
| int | computeP (void) |
| int | computeQ (void) |
| int | computeC (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 > > > | Y_ |
| LA::Matrix< Real > | X_ |
| LA::Matrix< Real > | Z_ |
| LA::Matrix< Real > | C_ |
| std::vector< Ptr< Vector< Real > > > | Upsilon_ |
| std::vector< Ptr< Vector< Real > > > | Phi_ |
| LA::Matrix< Real > | Omega_ |
| LA::Matrix< Real > | Psi_ |
| 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 31 of file ROL_Sketch.hpp.
|
inlinevirtual |
Definition at line 209 of file ROL_Sketch.hpp.
|
inline |
|
inlineprivate |
Definition at line 58 of file ROL_Sketch.hpp.
References orthIt_, orthTol_, ROL::ROL_EPSILON(), and zero.
Referenced by computeQ().
|
inlineprivate |
|
inlineprivate |
Definition at line 109 of file ROL_Sketch.hpp.
Referenced by computeC().
|
inlineprivate |
Definition at line 140 of file ROL_Sketch.hpp.
References flagP_, k_, lapack_, ncol_, and X_.
Referenced by computeC(), reconstruct(), and testP().
|
inlineprivate |
Definition at line 167 of file ROL_Sketch.hpp.
References flagQ_, mgs2(), and Y_.
Referenced by computeC(), reconstruct(), and testQ().
|
inlineprivate |
Definition at line 175 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().
|
inline |
Definition at line 239 of file ROL_Sketch.hpp.
References out_.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 328 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 360 of file ROL_Sketch.hpp.
References advance(), ncol_, reconstruct(), ROL::ROL_EPSILON(), testP(), testQ(), update(), and Y_.
Referenced by main().
|
inlineprivate |
Definition at line 411 of file ROL_Sketch.hpp.
References computeQ(), k_, ROL::ROL_EPSILON(), and Y_.
Referenced by test().
|
inlineprivate |
Definition at line 441 of file ROL_Sketch.hpp.
References computeP(), k_, ncol_, ROL::ROL_EPSILON(), X_, and zero.
Referenced by test().
|
private |
Definition at line 34 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), computeQ(), reconstruct(), reset(), setRank(), Sketch(), test(), and testQ().
|
private |
Definition at line 35 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), computeP(), reconstruct(), reset(), setRank(), Sketch(), and testP().
|
private |
Definition at line 35 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), reset(), setRank(), and Sketch().
|
private |
Definition at line 35 of file ROL_Sketch.hpp.
Referenced by computeC(), reconstruct(), reset(), setRank(), and Sketch().
|
private |
|
private |
Definition at line 38 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), reset(), setRank(), and Sketch().
|
private |
|
private |
Definition at line 39 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), reset(), setRank(), and Sketch().
|
private |
Definition at line 41 of file ROL_Sketch.hpp.
|
private |
Definition at line 41 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), computeP(), reconstruct(), reset(), setRank(), Sketch(), test(), and testP().
|
private |
Definition at line 41 of file ROL_Sketch.hpp.
Referenced by computeC(), setRank(), and Sketch().
|
private |
Definition at line 41 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), computeP(), reconstruct(), reset(), setRank(), Sketch(), testP(), and testQ().
|
private |
Definition at line 41 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), reset(), setRank(), and Sketch().
|
private |
Definition at line 43 of file ROL_Sketch.hpp.
|
private |
Definition at line 44 of file ROL_Sketch.hpp.
|
private |
Definition at line 46 of file ROL_Sketch.hpp.
Referenced by computeC(), and Sketch().
|
private |
Definition at line 48 of file ROL_Sketch.hpp.
Referenced by computeP(), lowRankApprox(), and LSsolver().
|
private |
Definition at line 50 of file ROL_Sketch.hpp.
Referenced by advance(), computeP(), reset(), and Sketch().
|
private |
Definition at line 50 of file ROL_Sketch.hpp.
Referenced by advance(), computeQ(), reset(), and Sketch().
|
private |
Definition at line 50 of file ROL_Sketch.hpp.
Referenced by advance(), computeC(), reset(), and Sketch().
|
private |
Definition at line 52 of file ROL_Sketch.hpp.
Referenced by advance(), reconstruct(), setRank(), setStream(), and Sketch().
|
private |
Definition at line 54 of file ROL_Sketch.hpp.
|
private |
Definition at line 55 of file ROL_Sketch.hpp.
Referenced by Sketch().
|
private |
Definition at line 56 of file ROL_Sketch.hpp.
Referenced by Sketch().