mpqc::math::CP3< Tile, Policy > Class Template Reference
Documentation
template<typename Tile, typename Policy>
class mpqc::math::CP3< Tile, Policy >
Computes 3-way CP decomposition of a order-3 tensor.
Public Member Functions | |
CP3 (Array &array) | |
CP3 (Array &array, std::vector< int > symm) | |
~CP3 ()=default | |
double | compute_rank (int rank, double tol=1e-4, int block_size=1, int max_als=100, bool fast_pI=false) |
std::vector< Array > | get_factors (int rank, int block_size) |
Array | reconstruct (int block_size) |
void | set_factors (std::vector< Array > facs, int rank, int block_size) |
Constructor & Destructor Documentation
◆ CP3() [1/2]
template<typename Tile , typename Policy >
mpqc::math::CP3< Tile, Policy >::CP3 | ( | Array & | array | ) |
◆ CP3() [2/2]
template<typename Tile , typename Policy >
mpqc::math::CP3< Tile, Policy >::CP3 | ( | Array & | array, |
std::vector< int > | symm | ||
) |
◆ ~CP3()
template<typename Tile , typename Policy >
|
default |
Member Function Documentation
◆ compute_rank()
template<typename Tile , typename Policy >
double mpqc::math::CP3< Tile, Policy >::compute_rank | ( | int | rank, |
double | tol = 1e-4 , |
||
int | block_size = 1 , |
||
int | max_als = 100 , |
||
bool | fast_pI = false |
||
) |
◆ get_factors()
template<typename Tile , typename Policy >
std::vector< typename CP3< Tile, Policy >::Array > mpqc::math::CP3< Tile, Policy >::get_factors | ( | int | rank, |
int | block_size | ||
) |
◆ reconstruct()
template<typename Tile , typename Policy >
CP3< Tile, Policy >::Array mpqc::math::CP3< Tile, Policy >::reconstruct | ( | int | block_size | ) |
◆ set_factors()
template<typename Tile , typename Policy >
|
inline |
The documentation for this class was generated from the following files: