3 #ifndef DISTNTF_DISTNTFCPALS_HPP_ 4 #define DISTNTF_DISTNTFCPALS_HPP_ 19 MAT update(
const int mode) {
20 MAT Ht = this->m_local_ncp_factors.factor(mode).t();
21 if (m_nls_sizes[mode] > 0) {
22 Ht = arma::solve(arma::trimatl(this->global_gram),
23 this->ncp_local_mttkrp_t[mode]);
32 const UVEC &i_global_dims,
const UVEC &i_local_dims,
33 const UVEC &i_nls_sizes,
const UVEC &i_nls_idxs,
35 :
DistAUNTF(i_tensor, i_k, i_algo, i_global_dims, i_local_dims,
36 i_nls_sizes, i_nls_idxs, i_mpicomm) {}
41 #endif // DISTNTF_DISTNTFCPALS_HPP_ Data is stored such that the unfolding is column major.
DistNTFCPALS(const Tensor &i_tensor, const int i_k, algotype i_algo, const UVEC &i_global_dims, const UVEC &i_local_dims, const UVEC &i_nls_sizes, const UVEC &i_nls_idxs, const NTFMPICommunicator &i_mpicomm)
ncp_factors contains the factors of the ncp every ith factor is of size n_i * k number of factors is ...