UMINUS Unary minus. X = UMINUS(X) returns the negated TTeMPS block-mu tensor X. Only the supercore is touched. See also UPLUS.
0001 function x = uminus( x ) 0002 %UMINUS Unary minus. 0003 % X = UMINUS(X) returns the negated TTeMPS block-mu tensor X. Only the supercore 0004 % is touched. 0005 % 0006 % See also UPLUS. 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 0014 x.U{x.mu} = -x.U{x.mu}; 0015 end