|
IDL Analyst Reference Guide: Math and Statistics Utilities |
|
The PM procedure 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 IDL Analyst Reference Guide. For multidimensional arrays, the syntax
PM, array
is equivalent to
PRINT, TRANSPOSE(array)
PM, Array0 [, ... , Array19]
The arrays to be displayed. The PM routine can display up to 20 arrays.
None.
; Define an array arr arr = [[1.0, 3.0], [0.0, 4.0], [2.0, 1.0]] ; Print using PM and PRINT PM, arr & PRINT & PRINT, arr
IDL prints: