|
ROL
|
By keeping a pointer to this in a derived Vector class, a tally of all methods is kept for profiling function calls. More...
#include <ROL_ProfiledVector.hpp>
Public Member Functions | |
| ProfiledVector (const ROL::Ptr< Vector< Real > > &v) | |
| virtual | ~ProfiledVector () |
| void | plus (const Vector< Real > &x) |
| void | scale (const Real alpha) |
| Real | dot (const Vector< Real > &x) const |
| Real | norm () const |
| ROL::Ptr< Vector< Real > > | clone () const |
| void | axpy (const Real alpha, const Vector< Real > &x) |
| void | zero () |
| ROL::Ptr< Vector< Real > > | basis (const int i) const |
| int | dimension () const |
| void | set (const Vector< Real > &x) |
| const Vector< Real > & | dual () const |
| ROL::Ptr< Vector< Real > > | getVector () |
| ROL::Ptr< const Vector< Real > > | getVector () const |
| void | applyUnary (const Elementwise::UnaryFunction< Real > &f) |
| void | applyBinary (const Elementwise::BinaryFunction< Real > &f, const Vector< Real > &x) |
| Real | reduce (const Elementwise::ReductionOp< Real > &r) const |
| void | setScalar (const Real C) |
| void | randomize (const Real l=0.0, const Real u=1.0) |
| void | print (std::ostream &outStream) const |
Private Types | |
| typedef Vector< Real > | V |
Private Member Functions | |
| ROL::VectorFunctionCalls< int > | functionCalls_ |
| ROL::VectorFunctionCalls< size_type > | functionCalls_ |
Private Attributes | |
| ROL::Ptr< Vector< Real > > | v_ |
Static Private Attributes | |
| static VectorFunctionCalls< Ordinal > | functionCalls_ |
Friends | |
| VectorFunctionCalls< Ordinal > | getVectorFunctionCalls (const ProfiledVector< Ordinal, Real > &) |
| void | printVectorFunctionCalls (const ProfiledVector< Ordinal, Real > &, std::ostream &) |
By keeping a pointer to this in a derived Vector class, a tally of all methods is kept for profiling function calls.
NOTE: This class is not yet compatible with vectors that have true duals
In the cpp file where this is used, you must initialize the VectorFunctionCalls object.
Example usage:
template<> VectorFunctionCalls<int> ProfiledVector<int,double>::functionCalls = VectorFunctionCalls<int>();
Definition at line 133 of file ROL_ProfiledVector.hpp.
|
private |
Definition at line 135 of file ROL_ProfiledVector.hpp.
|
inline |
Definition at line 142 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inlinevirtual |
Definition at line 154 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_.
|
inline |
Definition at line 158 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, ROL::ProfiledVector< Ordinal, Real >::getVector(), and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 165 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 170 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, ROL::ProfiledVector< Ordinal, Real >::getVector(), and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 176 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 181 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 186 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, ROL::ProfiledVector< Ordinal, Real >::getVector(), and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 192 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 197 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 202 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 207 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, ROL::ProfiledVector< Ordinal, Real >::getVector(), and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 214 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_.
|
inline |
Definition at line 219 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::v_.
Referenced by ROL::ProfiledVector< Ordinal, Real >::axpy(), ROL::ProfiledVector< Ordinal, Real >::dot(), ROL::ProfiledVector< Ordinal, Real >::plus(), and ROL::ProfiledVector< Ordinal, Real >::set().
|
inline |
Definition at line 223 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 227 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 232 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 237 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 242 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 247 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::functionCalls_, and ROL::ProfiledVector< Ordinal, Real >::v_.
|
inline |
Definition at line 252 of file ROL_ProfiledVector.hpp.
References ROL::ProfiledVector< Ordinal, Real >::v_.
|
private |
Definition at line 63 of file vector/test_06.cpp.
|
private |
Definition at line 62 of file vector/test_09.cpp.
|
friend |
Definition at line 102 of file ROL_ProfiledVector.hpp.
|
friend |
Definition at line 107 of file ROL_ProfiledVector.hpp.
|
private |
Definition at line 138 of file ROL_ProfiledVector.hpp.
Referenced by ROL::ProfiledVector< Ordinal, Real >::applyBinary(), ROL::ProfiledVector< Ordinal, Real >::applyUnary(), ROL::ProfiledVector< Ordinal, Real >::axpy(), ROL::ProfiledVector< Ordinal, Real >::basis(), ROL::ProfiledVector< Ordinal, Real >::clone(), ROL::ProfiledVector< Ordinal, Real >::dimension(), ROL::ProfiledVector< Ordinal, Real >::dot(), ROL::ProfiledVector< Ordinal, Real >::getVector(), ROL::ProfiledVector< Ordinal, Real >::norm(), ROL::ProfiledVector< Ordinal, Real >::plus(), ROL::ProfiledVector< Ordinal, Real >::print(), ROL::ProfiledVector< Ordinal, Real >::ProfiledVector(), ROL::ProfiledVector< Ordinal, Real >::randomize(), ROL::ProfiledVector< Ordinal, Real >::reduce(), ROL::ProfiledVector< Ordinal, Real >::scale(), ROL::ProfiledVector< Ordinal, Real >::set(), ROL::ProfiledVector< Ordinal, Real >::setScalar(), and ROL::ProfiledVector< Ordinal, Real >::zero().
|
staticprivate |
Definition at line 139 of file ROL_ProfiledVector.hpp.
Referenced by ROL::ProfiledVector< Ordinal, Real >::applyBinary(), ROL::ProfiledVector< Ordinal, Real >::applyUnary(), ROL::ProfiledVector< Ordinal, Real >::axpy(), ROL::ProfiledVector< Ordinal, Real >::basis(), ROL::ProfiledVector< Ordinal, Real >::clone(), ROL::ProfiledVector< Ordinal, Real >::dimension(), ROL::ProfiledVector< Ordinal, Real >::dot(), ROL::ProfiledVector< Ordinal, Real >::dual(), ROL::getVectorFunctionCalls(), ROL::ProfiledVector< Ordinal, Real >::norm(), ROL::ProfiledVector< Ordinal, Real >::plus(), ROL::printVectorFunctionCalls(), ROL::ProfiledVector< Ordinal, Real >::ProfiledVector(), ROL::ProfiledVector< Ordinal, Real >::randomize(), ROL::ProfiledVector< Ordinal, Real >::reduce(), ROL::ProfiledVector< Ordinal, Real >::scale(), ROL::ProfiledVector< Ordinal, Real >::set(), ROL::ProfiledVector< Ordinal, Real >::setScalar(), ROL::ProfiledVector< Ordinal, Real >::zero(), and ROL::ProfiledVector< Ordinal, Real >::~ProfiledVector().