Vector<T>.SetValues(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#
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.

See Also