Home > tt2 > @qtt_tucker > rdivide.m

rdivide

PURPOSE ^

C=A./B

SYNOPSIS ^

function [c] = rdivide(a,b)

DESCRIPTION ^

C=A./B
   [C]=RDIVIDE(A,B) Divides the QTT-Tucker tensor A by a number B 


 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 [c] = rdivide(a,b)
0002 %C=A./B
0003 %   [C]=RDIVIDE(A,B) Divides the QTT-Tucker tensor A by a number B
0004 %
0005 %
0006 % TT-Toolbox 2.2, 2009-2012
0007 %
0008 %This is TT Toolbox, written by Ivan Oseledets et al.
0009 %Institute of Numerical Mathematics, Moscow, Russia
0010 %webpage: http://spring.inm.ras.ru/osel
0011 %
0012 %For all questions, bugs and suggestions please mail
0013 %ivan.oseledets@gmail.com
0014 %---------------------------
0015 
0016 if isa(a,'qtt_tucker') && numel(b) == 1
0017 c=a*(1.0./b);
0018 else
0019     error('Use rdivide(full(A),full(B)).');
0020 end

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