Click or drag to resize

MatrixTInsertRow Method

Creates a new matrix and inserts the given row at the given index.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public Matrix<T> InsertRow(
	int rowIndex,
	Vector<T> row
)

Parameters

rowIndex  Int32
The index of where to insert the row.
row  VectorT
The row to insert.

Return Value

MatrixT
A new matrix with the inserted column.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf row is .
ArgumentOutOfRangeExceptionIf rowIndex is < zero or > the number of rows.
ArgumentExceptionIf the size of row != the number of columns.
See Also