Language Reference |
performs elementwise division
The division operator (/) divides each element of matrix1 by the corresponding element of matrix2, producing a matrix of quotients.
In addition to dividing elements in conformable matrices, you can also use the division operator to divide a matrix by a scalar, or rows or columns of a matrix by a vector. If either operand is a scalar, the operation does the division for each element and the scalar value. If either operand is a row or column vector, then the operation is performed using that vector on each of the rows or columns of the matrix.
When a missing value occurs in an operand, the IML procedure assigns a missing value for the corresponding element in the result.
If a divisor is zero, the procedure prints a warning and assigns a missing value for the corresponding element in the result. An example of a valid statement using this operator follows:
c=a/b;
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.