CALL ZEROMATRIX Routine

Replaces all of the element values of the numeric input matrix with 0.
Category: Matrix Operations
Note: You can use the ZEROMATRIX CALL routine with multi-dimensional numeric arrays.

Syntax

CALL ZEROMATRIX(X);

Required Argument

X
specifies a numeric input matrix.

Example

The following example uses the ZEROMATRIX CALL routine:
options pageno=1 nodate;

proc fcmp;
   array mat1[3,2]  (0.3, -0.78, -0.82, 0.54, 1.74, 1.2);
   call zeromatrix (mat1);
   put mat1=;
quit;
Output from the ZEROMATRIX CALL Routine
                                 The SAS System                                1

                               The FCMP Procedure

mat1[1, 1]=0 mat1[1, 2]=0 mat1[2, 1]=0 mat1[2, 2]=0 mat1[3, 1]=0 mat1[3,
2]=0