Matrix<T>.SetColumn Method

Sets the values of the specified column in the matrix to those from the provided vector.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.5
C#
public Matrix<T> SetColumn(
	int column,
	Vector<T> source
)

Parameters

column  Int32
The zero-based index of the column to set. Must be within the range of valid column indices for the matrix.
source  Vector<T>
The vector whose values will be copied into the specified column. The length of the vector must match the number of rows in the matrix. Cannot be null.

Return Value

Matrix<T>
The current matrix instance with the updated column values.

See Also