IResizableMatrix<T>.InsertRows Method

Inserts zero or more rows into a matrix that the specified index.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
void InsertRows(
	int index,
	Matrix<T> data
)

Parameters

index  Int32
The index where the new rows will be inserted.
data  Matrix<T>
A Matrix<T> containing the data for the rows.

Remarks

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

The number of rows is increased by one.

Exceptions

ArgumentNullException

data is null.

ArgumentOutOfRangeException

index is less than zero or greater than the number of rows.

DimensionMismatchException

The number of columns of data does not equal the number of columns of the matrix.

See Also