DenseVector<T, TStorage>.SetValues Method

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

SetValues(Vector<T>, Vector<Boolean>) Sets the elements of a vector that match the specified condition.
SetValues(T, Range) Sets a range of elements of the vector to the specified value.
SetValues(T, Vector<Boolean>) Sets the elements of a vector that match the specified condition to the specified value.
SetValues(T, Func<T, Boolean>) Sets all the elements that meet a condition to the specified value.

SetValues(Vector<T>, Vector<Boolean>)

Sets the elements of a vector that match the specified condition.
C#
protected override void SetValues(
	Vector<T> values,
	Vector<bool> mask
)

Parameters

values  Vector<T>
A vector that contains the values that are to be assigned.
mask  Vector<Boolean>
A boolean vector that specifies the elements to set.

See Also