Vector<T>.Replace Value Into Method
Replaces every occurrence of a value with a new value.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
A reference to this vector.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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. |