Home > tt2 > core > tt_maxrank.m

tt_maxrank

PURPOSE ^

Maximal rank of the TT-tensor(?)

SYNOPSIS ^

function [rmax]=tt_maxrank(tt,s)

DESCRIPTION ^

Maximal rank of the TT-tensor(?)
 May 26, 2011
 Vladimir Kazeev
 vladimir.kazeev@gmail.com
 INM RAS
 Moscow, Russia

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Wed 08-Feb-2012 18:20:24 by m2html © 2005