IResizableMatrix<T>.InsertRow Method

Inserts a row into a matrix that the specified index.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
void InsertRow(
	int index,
	Vector<T> data
)

Parameters

index  Int32
The index of the new row.
data  Vector<T>
A Vector<T> containing the data for the row.

Remarks

index becomes the index of the new row in the matrix. To insert a row after the last row, use a value of RowCount, or use the AppendRow(Vector<T>) method.

The number of rows is increased by one.

Exceptions

ArgumentNullExceptiondata is null.
ArgumentOutOfRangeExceptionindex is less than zero or greater than the number of rows.
DimensionMismatchException The length of data does not equal the number of columns of the matrix.

See Also