Vector<T>.Set Values(T, Func<T, Boolean>) Method
Sets all the elements that meet a condition to
the specified value.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A reference to this Vector<T> with the elements for which condition is true replaced with value.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public virtual Vector<T> SetValues(
T value,
Func<T, bool> condition
)
Parameters
- value T
- The value to be assigned to the matching elements.
- condition Func<T, Boolean>
- A condition to apply to each element.
Return Value
Vector<T>A reference to this Vector<T> with the elements for which condition is true replaced with value.