Click or drag to resize
DigitalRuneMatrixFGetSubmatrix Method (Int32, Int32)
Gets a submatrix of this matrix.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public MatrixF GetSubmatrix(
	int[] rows,
	int[] columns
)

Parameters

rows
Type: SystemInt32
The indices of the rows.
columns
Type: SystemInt32
The indices of the columns.

Return Value

Type: MatrixF
The extracted submatrix.
Exceptions
ExceptionCondition
IndexOutOfRangeException An index in rows or columns is invalid.
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