Multiply tensor by a scalar in TT1.0 format [RES]=TT_SCAL(TT,ALPHA) Multiply TT tensor by a scalar ALPHA in TT1.0 format. Please avoid its usage: it will be removed in future releases. Use * operator 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 ivan.oseledets@gmail.com ---------------------------
0001 function [res] = tt_scal(tt,alpha) 0002 %Multiply tensor by a scalar in TT1.0 format 0003 % [RES]=TT_SCAL(TT,ALPHA) Multiply TT tensor by a scalar ALPHA in TT1.0 0004 % format. Please avoid its usage: it will be removed in 0005 % future releases. Use * operator 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 0015 %ivan.oseledets@gmail.com 0016 %--------------------------- 0017 res=tt; 0018 res{1}=res{1}*alpha; 0019 end