Effective rank of the TT-tensor: Approximate memory definition [RK]=TT_ERANK(TT) Computes the effective rank of the TT-tensor, assuming all modes sizes are equal TT-Toolbox 2.2, 2009-2012 This is TT Toolbox, written by Ivan Oseledets et al. Institute of Numerical Mathematics, Moscow, Russia webpage: http://spring.inm.ras.ru/osel For all questions, bugs and suggestions please mail ivan.oseledets@gmail.com ---------------------------
0001 function [rk]=tt_erank(tt) 0002 %Effective rank of the TT-tensor: Approximate memory definition 0003 % [RK]=TT_ERANK(TT) Computes the effective rank of the TT-tensor, 0004 % assuming all modes sizes are equal 0005 % 0006 % 0007 % TT-Toolbox 2.2, 2009-2012 0008 % 0009 %This is TT Toolbox, written by Ivan Oseledets et al. 0010 %Institute of Numerical Mathematics, Moscow, Russia 0011 %webpage: http://spring.inm.ras.ru/osel 0012 % 0013 %For all questions, bugs and suggestions please mail 0014 %ivan.oseledets@gmail.com 0015 %--------------------------- 0016 rk = sqrt(tt_mem(tt)/(sum(tt_size(tt)))); 0017