Mode sizes of the TT-matrix [SZ]=SIZE(TT) Returns the mode sizes of the TT-matrix as a dx2 array of integers 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 [sz] = size(tt) 0002 %Mode sizes of the TT-matrix 0003 % [SZ]=SIZE(TT) Returns the mode sizes of the TT-matrix as a dx2 array of 0004 % integers 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 n=tt.n; m=tt.m; 0017 n0=[n,m]; 0018 sz=n0; 0019 return 0020 end