Home > tt2 > core > tt_kron7.m

tt_kron7

PURPOSE ^

Kronecker product of two TT-tensors in the reverse order

SYNOPSIS ^

function [tt]=tt_kron7(tt1,tt2,s)

DESCRIPTION ^

Kronecker product of two TT-tensors in the reverse order
   [TT]=TT_KRON7(TT1,TT2,S)
 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 [tt]=tt_kron7(tt1,tt2,s)
0002 %Kronecker product of two TT-tensors in the reverse order
0003 %   [TT]=TT_KRON7(TT1,TT2,S)
0004 % May 26, 2011
0005 % Vladimir Kazeev
0006 % vladimir.kazeev@gmail.com
0007 % INM RAS
0008 % Moscow, Russia
0009 
0010 d1 = size(tt1,1);
0011 d2 = size(tt2,1);
0012 
0013 tt1{1}=permute(tt1{1},[(1:s),s+2,s+1]);
0014 %tt2{1}=permute(tt2{1},[(1:s),s+2,s+1]);
0015 
0016 tt = cell(d1+d2,1);
0017 for i=1:d2
0018     tt{i}=tt2{i};
0019 end
0020 for i=1:d1
0021     tt{d2+i}=tt1{i};
0022 end
0023 
0024 %tt{1}=permute(tt{1},[(1:s),s+2,s+1]);
0025 
0026 return
0027 end

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