Click or drag to resize

DiagonalMatrixSubMatrix Method

Creates a matrix that contains the values from the requested sub-matrix.

Namespace: Altaxo.Calc.LinearAlgebra.Complex
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public override Matrix<Complex> SubMatrix(
	int rowIndex,
	int rowCount,
	int columnIndex,
	int columnCount
)

Parameters

rowIndex  Int32
The row to start copying from.
rowCount  Int32
The number of rows to copy. Must be positive.
columnIndex  Int32
The column to start copying from.
columnCount  Int32
The number of columns to copy. Must be positive.

Return Value

MatrixComplex
The requested sub-matrix.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionIf:
  • rowIndex is negative, or greater than or equal to the number of rows.
  • columnIndex is negative, or greater than or equal to the number of columns.
  • (columnIndex + columnLength) >= Columns
  • (rowIndex + rowLength) >= Rows
ArgumentOutOfRangeExceptionIf rowCount or columnCount is not positive.
See Also