columns (optional) Number of columns in the matrix.
Dcomplex If present and nonzero, creates a double-precision complex matrix.
Double If present and nonzero, creates a double-precision matrix.
Upon invoking RM, the user is prompted with the row number for which input is expected. The prompt for the next row to be filled does not appear until the current row is filled. If the amount of data input for a particular row is larger than the defined number of columns of a, then the extra trailing input is ignored, and the prompt for the next row is given.
The matrix-printing procedures PM or PMF must be used to correctly print a matrix read in with RM.
RM, a, 2, 3
row 0: 11 22 33
row 1: 40 50 60
PM, a
11.0000 22.0000 33.0000
40.0000 50.0000 60.0000
RM, a, 3, 2, /Complex
row 0: (1, 0) (1, 1)
row 1: 1 -1
row 2: (10.0, 0) (0, -10)
PM, a
( 1.00000, 0.00000)( 1.00000, 1.00000)
( 1.00000, 0.00000)( -1.00000, 0.00000)
( 10.0000, 0.00000)( 0.00000, -10.0000)
RM, a, 3, 3
row 0: 1 3 3
row 1: 1 3 4
row 2: 1 4 3
RM, b, 3, 1
row 0: 1
row 1: 4
row 2: -1
x = LUSOL(b, a)
PM, x
-2.00000
-2.00000
3.00000
PM, a#x - b
0.00000
0.00000
0.00000
See Matrices in Chapter 5 of the PV-WAVE Programmer's Guide for more information.