The PM procedure within IMSL performs formatted output of arrays using the standard linear algebraic convention: “row” refers to the first index of the array and “column” refers to the second. By contrast, other IDL routines (such as PRINT) perform formatted output of arrays using the standard image processing convention: “column” refers to the first index of the array and “row” refers to the second.
The PM procedure is used extensively in the examples in the IMSL routines. For multidimensional arrays, the syntax:
PM, array
is equivalent to:
PRINT, TRANSPOSE(array)
This routine requires an IDL Advanced Math and Stats license. For more information, contact your sales or technical support representative.
Examples
Example 1
arr = [[1.0, 3.0], [0.0, 4.0], [2.0, 1.0]]
PM, arr & PRINT & PRINT, arr
IDL prints:
1.00000 0.000000 2.00000
3.00000 4.00000 1.00000
1.00000 3.00000
0.000000 4.00000
2.00000 1.00000
Syntax
PM, Array0 [, ... , Array19]
Return Value
None
Arguments
Arrayn
The arrays to be displayed. The PM routine can display up to 20 arrays.
Keywords
None
Version History
See Also
RM