Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
CTF::HoSVD< dtype > Class Template Reference

#include <decomposition.h>

Inheritance diagram for CTF::HoSVD< dtype >:
Collaboration diagram for CTF::HoSVD< dtype >:

Public Member Functions

 HoSVD (Tensor< dtype > T, int *ranks)
 
 HoSVD (int *lens, int *ranks)
 
Contract_Term operator[] (char const *idx_map)
 associated an index map with the tensor decomposition for algebra More...
 

Data Fields

Tensor< dtype > core_tensor
 
std::vector< Matrix< dtype > > factor_matrices
 

Detailed Description

template<typename dtype>
class CTF::HoSVD< dtype >

Definition at line 21 of file decomposition.h.

Constructor & Destructor Documentation

template<typename dtype >
CTF::HoSVD< dtype >::HoSVD ( Tensor< dtype >  T,
int *  ranks 
)

higher order singular value decomposition of a tensor

Parameters
[in]ranksranks(dimensions) of the core tensor and factor matrices

Referenced by CTF::get_core_tensor().

template<typename dtype >
void CTF::HoSVD< dtype >::HoSVD ( int *  lens,
int *  ranks 
)

initialize a higher order singular value decomposition of a tensor to zero

Parameters
[in]lensranks(dimensions) of the factored tensor
[in]ranksranks(dimensions) of the core tensor and factor matrices

Definition at line 138 of file decomposition.cxx.

Member Function Documentation

template<typename dtype >
Contract_Term CTF::HoSVD< dtype >::operator[] ( char const *  idx_map)
virtual

associated an index map with the tensor decomposition for algebra

Parameters
[in]idx_mapindex assignment for this tensor

Implements CTF::Decomposition< dtype >.

Definition at line 21 of file decomposition.cxx.

References CTF::HoSVD< dtype >::core_tensor, and CTF::HoSVD< dtype >::factor_matrices.

Field Documentation

template<typename dtype >
Tensor<dtype> CTF::HoSVD< dtype >::core_tensor

Definition at line 23 of file decomposition.h.

Referenced by CTF::get_core_tensor(), and CTF::HoSVD< dtype >::operator[]().

template<typename dtype >
std::vector< Matrix<dtype> > CTF::HoSVD< dtype >::factor_matrices

The documentation for this class was generated from the following files: