| MatrixDGetSubmatrix Method (Int32, 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 startColumn,
int endColumn
)
Public Function GetSubmatrix (
rows As Integer(),
startColumn As Integer,
endColumn As Integer
) As MatrixD
public:
MatrixD^ GetSubmatrix(
array<int>^ rows,
int startColumn,
int endColumn
)
member GetSubmatrix :
rows : int[] *
startColumn : int *
endColumn : int -> MatrixD
Parameters
- rows
- Type: SystemInt32
The indices of the rows. - startColumn
- Type: SystemInt32
The index of the start column. - endColumn
- Type: SystemInt32
The index of the end column (included in the submatrix).
Return Value
Type:
MatrixDThe extracted submatrix.
Exceptions Remarks
The index array has to be interpreted like this: For example, row[0] = 5 means that
row 5 of this matrix will be copied into row 0 of the submatrix.
See Also