IResizableMatrix<T>.ReplaceRows Method

Inserts zero or more rows into a matrix in place of zero or more other rows.

Definition

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

Parameters

index  Int32
The index of the first row that will be replaced.
count  Int32
The number of rows to replace.
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. If count is zero, the rows are inserted at the specified index. If data is null, the specified rows are deleted.

The number of rows is decreased by count and increased by the number of rows of data.

Exceptions

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

-or-

count is less than zero or greater than the number of rows from index to the end.

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

See Also