Home > tt2 > @tt_tensor > minus.m

minus

PURPOSE ^

A=B-C

SYNOPSIS ^

function [a]=minus(b,c)

DESCRIPTION ^

A=B-C
   [A]=MINUS(B,C) Subtraction of two tensors
   
Adds two TT-tensors B and C


 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 [a]=minus(b,c)
0002 %A=B-C
0003 %   [A]=MINUS(B,C) Subtraction of two tensors
0004 %
0005 %Adds two TT-tensors B and C
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 
0018 a=b+(-1.0)*c;
0019 return
0020 end

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