MINUS Substraction of two TT/MPS block-mu tensors. Z = MINUS(X,Y) substracts two TT/MPS tensors. The rank of the resulting tensor is the sum of the individual ranks. See also PLUS, UMINUS.
0001 function z = minus( x, y ) 0002 %MINUS Substraction of two TT/MPS block-mu tensors. 0003 % Z = MINUS(X,Y) substracts two TT/MPS tensors. The rank of the resulting 0004 % tensor is the sum of the individual ranks. 0005 % 0006 % See also PLUS, UMINUS. 0007 0008 % TTeMPS Toolbox. 0009 % Michael Steinlechner, 2013-2016 0010 % Questions and contact: michael.steinlechner@epfl.ch 0011 % BSD 2-clause license, see LICENSE.txt 0012 0013 z = plus(x, uminus(y)); 0014 0015 end