Vector<T>.Replace Value Into Method
Replaces every occurrence of a value with a new value.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A reference to this vector.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public virtual Vector<T> ReplaceValueInto(
T oldValue,
T newValue,
Vector<T> result
)
Parameters
- oldValue T
- The value to replace.
- newValue T
- The replacement value.
- result Vector<T>
- The vector that is to hold the result. May be null.
Return Value
Vector<T>A reference to this vector.
Exceptions
Dimension | The length of result does not equal the length of this vector. |