Vector<T>.ReplaceValueInto 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.3
C#
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

DimensionMismatchException

The length of result does not equal the length of this vector.

See Also