DenseVector<T>.SetValues Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

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