| MatrixFGetSubmatrix 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 MatrixF GetSubmatrix(
int[] rows,
int[] columns
)
Public Function GetSubmatrix (
rows As Integer(),
columns As Integer()
) As MatrixF
public:
MatrixF^ GetSubmatrix(
array<int>^ rows,
array<int>^ columns
)
member GetSubmatrix :
rows : int[] *
columns : int[] -> MatrixF
Parameters
- rows
- Type: SystemInt32
The indices of the rows. - 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