Computes the number of parameters in the TT-matrix [MM]=MEM(TT) Computes the number of parameters in the TT-matrix, which is the total number of elements in the TT-cores 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 [mm]=mem(tt) 0002 %Computes the number of parameters in the TT-matrix 0003 % [MM]=MEM(TT) Computes the number of parameters in the TT-matrix, which 0004 % is the total number of elements in the TT-cores 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 mm=mem(tt.tt); 0017 return 0018 end