IResizableMatrix<T>.InsertColumn Method

Inserts a column 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 InsertColumn(
	int index,
	Vector<T> data
)

Parameters

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

Remarks

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

The number of columns is increased by one.

Exceptions

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

See Also