IResizableMatrix<T>.InsertColumns Method

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

Definition

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

Parameters

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

Remarks

index becomes the index of the first new column in the matrix. To insert a column after the last column, use a value of ColumnCount, or use the AppendColumns(Matrix<T>) method.

The number of columns is increased by one.

Exceptions

ArgumentNullException

data is null.

ArgumentOutOfRangeException

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

DimensionMismatchException

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

See Also