Maximal rank of the TT-tensor(?) May 26, 2011 Vladimir Kazeev vladimir.kazeev@gmail.com INM RAS Moscow, Russia
0001 function [rmax]=tt_maxrank(tt,s) 0002 %Maximal rank of the TT-tensor(?) 0003 % May 26, 2011 0004 % Vladimir Kazeev 0005 % vladimir.kazeev@gmail.com 0006 % INM RAS 0007 % Moscow, Russia 0008 0009 d=size(tt,1); 0010 r=zeros(d,2); 0011 for k=1:d 0012 r(k,1)=size(tt{k},s+1); 0013 r(k,2)=size(tt{k},s+2); 0014 end 0015 rmax=max(reshape(r,2*d,1)); 0016 0017 return 0018 end