Home > tt2 > core > tt_mem.m

tt_mem

PURPOSE ^

Memory required to store the tensor TT

SYNOPSIS ^

function [mem]=tt_mem(tt)

DESCRIPTION ^

 Memory required to store the tensor TT
   [MEM]=TT_MEM(TT) Computes the total number of elements in the TT-tensor
   in the TT1.0 format. Please avoid its usage: it will be removed in
   future releases. Use mem() 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 [mem]=tt_mem(tt)
0002 % Memory required to store the tensor TT
0003 %   [MEM]=TT_MEM(TT) Computes the total number of elements in the TT-tensor
0004 %   in the TT1.0 format. Please avoid its usage: it will be removed in
0005 %   future releases. Use mem() 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 mem=0;
0018 d=size(tt,1);
0019 for k=1:d
0020     mem=mem+numel(tt{k});
0021 end
0022 end

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