planc
Parallel Lowrank Approximation with Non-negativity Constraints
Public Member Functions | List of all members
DenseDimensionTree Class Reference

#include <ddt.hpp>

Public Member Functions

 DenseDimensionTree (const planc::Tensor &i_input_tensor, const planc::NCPFactors &i_ncp_factors, long int split_mode)
 
void set_factor (const double *arma_factor_ptr, const long int mode)
 
 ~DenseDimensionTree ()
 
void set_left_right_product (const long int i_split_mode)
 
void in_order_reuse_MTTKRP (long int n, double *out, bool colmajor, double &multittv_time, double &mttkrp_time)
 

Detailed Description

Definition at line 11 of file ddt.hpp.

Constructor & Destructor Documentation

◆ DenseDimensionTree()

DenseDimensionTree::DenseDimensionTree ( const planc::Tensor i_input_tensor,
const planc::NCPFactors i_ncp_factors,
long int  split_mode 
)
inline

Definition at line 24 of file ddt.hpp.

◆ ~DenseDimensionTree()

DenseDimensionTree::~DenseDimensionTree ( )
inline

Definition at line 100 of file ddt.hpp.

Member Function Documentation

◆ in_order_reuse_MTTKRP()

void DenseDimensionTree::in_order_reuse_MTTKRP ( long int  n,
double *  out,
bool  colmajor,
double &  multittv_time,
double &  mttkrp_time 
)
inline

Updating the first factor matrix, do a partial MTTKRP

PM is a factor matrix update D) right, tells the function that 0 is being updated m_local_Y) the original ktensor T) the original data tensor num_threads)

PM outputs an intermediate tensor T) the original tensor, PM always takes the original tensor m_local_Y) the original ktensor, D) s) overall split point projection_Tensor) num_threads)

Updating the first left side, do a partial MTTKRP

1) A single left contraction to updage the projection_tensor 2) A right contraction to get the desired MTTKRP

Definition at line 134 of file ddt.hpp.

◆ set_factor()

void DenseDimensionTree::set_factor ( const double *  arma_factor_ptr,
const long int  mode 
)
inline

Definition at line 93 of file ddt.hpp.

◆ set_left_right_product()

void DenseDimensionTree::set_left_right_product ( const long int  i_split_mode)
inline

Definition at line 118 of file ddt.hpp.


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