Sets all the elements that meet a condition to
the specified value.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public virtual Vector<T> SetValues(
T value,
Func<T, bool> condition
)
Public Overridable Function SetValues (
value As T,
condition As Func(Of T, Boolean)
) As Vector(Of T)
public:
virtual Vector<T>^ SetValues(
T value,
Func<T, bool>^ condition
)
abstract SetValues :
value : 'T *
condition : Func<'T, bool> -> Vector<'T>
override SetValues :
value : 'T *
condition : Func<'T, bool> -> Vector<'T>
Parameters
- value
- Type: T
The value to be assigned to the matching elements. - condition
- Type: SystemFuncT, Boolean
A condition to apply to each element.
Return Value
Type:
VectorTA reference to this
VectorT with the elements
for which
condition is
replaced with
value.
Reference