I want to know if there is any SAS/IML function which returns the row and column location of an element with a M x N or N x N Matrix.
For example, I want to know the location of the smallest element in the matrix A. I can find the element using
>>a=loc(min(A));
This returns the elements value, but not the position within the matrix.
Even when I try
>>b=ncol(min(A));
>>c=nrow(min(A));
SAS/IML only return column=1 row=1, since it still recognizes the elements as a value, separate from the Matrix.
Appreciate any help you could give.