| MatrixFGetSubmatrix 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 MatrixF GetSubmatrix(
int startRow,
int endRow,
int[] columns
)
Public Function GetSubmatrix (
startRow As Integer,
endRow As Integer,
columns As Integer()
) As MatrixF
public:
MatrixF^ GetSubmatrix(
int startRow,
int endRow,
array<int>^ columns
)
member GetSubmatrix :
startRow : int *
endRow : int *
columns : int[] -> MatrixF
Parameters
- startRow
- Type: SystemInt32
The index of the start row. - endRow
- Type: SystemInt32
The index of the end row (included in the submatrix). - columns
- Type: SystemInt32
The indices of the columns.
Return Value
Type:
MatrixFThe 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