linalg[submatrix] - extract a specified submatrix from a matrix
|
Calling Sequence
|
|
submatrix(A, Rrange, Crange)
submatrix(A, Rlist, Clist)
|
|
Parameters
|
|
A
|
-
|
matrix
|
Rrange, Crange
|
-
|
integer ranges of rows/columns of A
|
Rlist, Clist
|
-
|
lists of integer row/column indices
|
|
|
|
|
Description
|
|
•
|
The call submatrix(A, Rrange, Crange) returns the submatrix of A selected by the row range Rrange and the column range Crange.
|
•
|
The call submatrix(A, Rlist, Clist) returns the matrix whose (i,j)th element is A[Rlist[i], Clist[j]].
|
•
|
These calling methods can be combined, so for instance the call submatrix(A, Rlist, Crange) is valid, and will return the submatrix of A with rows from Rlist and columns from Crange.
|
•
|
The command with(linalg,submatrix) allows the use of the abbreviated form of this command.
|
|
|
Download Help Document
Was this information helpful?