| MatrixDGetSubmatrix Method (Int32, Int32) |
Gets a submatrix of this matrix.
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public MatrixD GetSubmatrix(
int[] rows,
int[] columns
)
Public Function GetSubmatrix (
rows As Integer(),
columns As Integer()
) As MatrixD
public:
MatrixD^ GetSubmatrix(
array<int>^ rows,
array<int>^ columns
)
member GetSubmatrix :
rows : int[] *
columns : int[] -> MatrixD
Parameters
- rows
- Type: SystemInt32
The indices of the rows. - columns
- Type: SystemInt32
The indices of the columns.
Return Value
Type:
MatrixDThe extracted submatrix.
Exceptions Remarks
The index array has to be interpreted like this: For example, columns[0] = 5 means
that column 5 of this matrix will be copied into column 0 of the submatrix.
See Also