xerus
a general purpose tensor library
|
class to compactly represent tangent vectors of the manifold of constant TT-rank More...
#include <retractions.h>
Public Member Functions | |
TTTangentVector () | |
TTTangentVector (const TTTensor &_base, const TTTensor &_direction) | |
creates a tangent vector by projecting _direction onto the tangent plane located at _base More... | |
TTTensor | added_to_base () const |
value_t | frob_norm () const |
operator TTTensor () const | |
TTTangentVector | operator* (value_t _alpha) const |
TTTangentVector & | operator*= (value_t _alpha) |
TTTangentVector & | operator+= (const TTTangentVector &_rhs) |
TTTangentVector & | operator-= (const TTTangentVector &_rhs) |
value_t | scalar_product (const TTTangentVector &_other) const |
void | set_base (const TTTensor &_newBase) |
Public Attributes | |
TTTensor | baseL |
std::vector< Tensor > | components |
class to compactly represent tangent vectors of the manifold of constant TT-rank
Definition at line 33 of file retractions.h.
|
inline |
Definition at line 41 of file retractions.h.
creates a tangent vector by projecting _direction onto the tangent plane located at _base
Definition at line 82 of file retractions.cpp.
TTTensor xerus::TTTangentVector::added_to_base | ( | ) | const |
Definition at line 236 of file retractions.cpp.
value_t xerus::TTTangentVector::frob_norm | ( | ) | const |
Definition at line 181 of file retractions.cpp.
|
explicit |
Definition at line 210 of file retractions.cpp.
TTTangentVector xerus::TTTangentVector::operator* | ( | value_t | _alpha | ) | const |
Definition at line 155 of file retractions.cpp.
TTTangentVector & xerus::TTTangentVector::operator*= | ( | value_t | _alpha | ) |
Definition at line 148 of file retractions.cpp.
TTTangentVector & xerus::TTTangentVector::operator+= | ( | const TTTangentVector & | _rhs | ) |
Definition at line 132 of file retractions.cpp.
TTTangentVector & xerus::TTTangentVector::operator-= | ( | const TTTangentVector & | _rhs | ) |
Definition at line 140 of file retractions.cpp.
value_t xerus::TTTangentVector::scalar_product | ( | const TTTangentVector & | _other | ) | const |
Definition at line 167 of file retractions.cpp.
void xerus::TTTangentVector::set_base | ( | const TTTensor & | _newBase | ) |
Definition at line 76 of file retractions.cpp.
TTTensor xerus::TTTangentVector::baseL |
Definition at line 35 of file retractions.h.
std::vector<Tensor> xerus::TTTangentVector::components |
Definition at line 40 of file retractions.h.