Language Reference |
reverses the signs of elements
The sign reverse prefix operator (-) produces a new matrix containing elements that are formed by reversing the sign of each element in matrix. A missing value is assigned if the element is missing.
For example, following statements produce the matrix , as shown:
a={-1 7 6, 2 0 -8}; b=-a;
B 2 rows 3 cols (numeric) 1 -7 -6 -2 0 8
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.