Element-wise negation
mps_neg( rop, op ) rop = mps_neg( op )
Overloaded usage:
rop = -op
multi-precision matrix
Scilab or multi-precision matrix
Returns the element-wise negation of the entries of op
Sets every element of rop
to the negative
value of op
.
Creates a multi-precision matrix the same size and precision as
op
containing the result.
Overloaded Scilab unary operator -. Creates a multi-precision
matrix the same size and precision as op
containing the result.
Like most mps functions the mps_neg( rop, op ) form is faster and
can reuse the space of an existing matrix but requires an already
initialized operand. Also, the same form can be used to perform an in-place
operation when rop
and op
are the
same.