Click or drag to resize
DigitalRuneMatrixF.GetSubmatrix Method (Int32[], 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 startColumn,
	int endColumn
)

Parameters

rows
Type:System.Int32[]
The indices of the rows.
startColumn
Type: System.Int32
The index of the start column.
endColumn
Type: System.Int32
The index of the end column (included in the submatrix).

Return Value

Type: MatrixF
The extracted submatrix.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionstartColumn is greater than endColumn.
ArgumentOutOfRangeExceptionstartColumn or endColumn is out of range.
IndexOutOfRangeException An index in rows is invalid.
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