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