function [tt]=qtttucker_to_tt(fc, cr) Builds the TT tensor from the QTT-Tucker representation, where fc is the Tucker factors in QTT (cell array of @tt_tensor), cr is the Tucker core in TT.
0001 function [tt]=qtttucker_to_tt(fc, cr) 0002 % function [tt]=qtttucker_to_tt(fc, cr) 0003 % Builds the TT tensor from the QTT-Tucker representation, 0004 % where fc is the Tucker factors in QTT (cell array of @tt_tensor), 0005 % cr is the Tucker core in TT. 0006 0007 d = cr.d; 0008 for i=1:d 0009 fc{i} = tt_reshape(fc{i}, prod(fc{i}.n), [], 1, fc{i}.r(fc{i}.d+1)); 0010 fc{i} = fc{i}{1}; 0011 fc{i} = reshape(fc{i}, size(fc{i}, 2), size(fc{i}, 3)); 0012 end; 0013 tt = tucker_to_tt(fc, cr); 0014 0015 end