Home > tt2 > core > tt_transp.m

tt_transp

PURPOSE ^

Transposition of the TT matrix

SYNOPSIS ^

function [tt]=tt_transp(tt)

DESCRIPTION ^

Transposition of the TT matrix
   [TT]=TT_TRANSP(TT) Transpose of the TT-matrix in TT1.0 format. Please 
   avoid its usage: it will be removed in future releases. Use ' and .'
   operators  from the object-oriented version


 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
---------------------------

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [tt]=tt_transp(tt)
0002 %Transposition of the TT matrix
0003 %   [TT]=TT_TRANSP(TT) Transpose of the TT-matrix in TT1.0 format. Please
0004 %   avoid its usage: it will be removed in future releases. Use ' and .'
0005 %   operators  from the object-oriented version
0006 %
0007 %
0008 % TT-Toolbox 2.2, 2009-2012
0009 %
0010 %This is TT Toolbox, written by Ivan Oseledets et al.
0011 %Institute of Numerical Mathematics, Moscow, Russia
0012 %webpage: http://spring.inm.ras.ru/osel
0013 %
0014 %For all questions, bugs and suggestions please mail
0015 %ivan.oseledets@gmail.com
0016 %---------------------------
0017 d=size(tt,1);
0018 tt{1}=permute(tt{1},[2,1,3]);
0019 tt{d}=permute(tt{d},[2,1,3]);
0020 for k=2:d-1
0021   tt{k}=permute(tt{k},[2,1,3,4]);
0022 end
0023 return
0024 end

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