From f8c4890adf873ae65326044282df02ef588887ca Mon Sep 17 00:00:00 2001 From: Mingwu Li Date: Tue, 9 Nov 2021 18:10:51 +0100 Subject: [PATCH] adaptation of tensor toolbox --- ext/tensor_toolbox/@sptensor/ttm.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/tensor_toolbox/@sptensor/ttm.m b/ext/tensor_toolbox/@sptensor/ttm.m index a382fa5..91b5290 100644 --- a/ext/tensor_toolbox/@sptensor/ttm.m +++ b/ext/tensor_toolbox/@sptensor/ttm.m @@ -125,14 +125,14 @@ % dense matrix Z = double(Xnt) * V.'; -if nnz(Z) <= 1.0 * prod(siz) % SSMTool need sptensor +% if nnz(Z) <= 1.0 * prod(siz) % SSMTool need sptensor % Final result is a *sparse* tensor Ynt = sptenmat(Z, rdims, cdims, siz); Y = sptensor(Ynt); -else - % Final result is a *dense* tensor - Ynt = tenmat(Z, rdims, cdims, siz); - Y = tensor(Ynt); -end +% else +% % Final result is a *dense* tensor +% Ynt = tenmat(Z, rdims, cdims, siz); +% Y = tensor(Ynt); +% end end