Click or drag to resize

MatrixTSetSubMatrix(Int32, Int32, Int32, Int32, MatrixT) Method

Copies the values of a given matrix into a region in this matrix.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public void SetSubMatrix(
	int rowIndex,
	int rowCount,
	int columnIndex,
	int columnCount,
	Matrix<T> subMatrix
)

Parameters

rowIndex  Int32
The row to start copying to.
rowCount  Int32
The number of rows to copy. Must be positive.
columnIndex  Int32
The column to start copying to.
columnCount  Int32
The number of columns to copy. Must be positive.
subMatrix  MatrixT
The sub-matrix to copy from.
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