Matrix<T>.SetRow Method

Sets the values of the specified row to those of the provided vector.

Definition

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

Parameters

row  Int32
The zero-based index of the row to set. Must be within the valid range of row indices for the matrix.
source  Vector<T>
The vector containing the values to assign to the row. The length of the vector must match the number of columns in the matrix. Cannot be null.

Return Value

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

See Also