Vector<T>.MapWhereCore<U>(Func<Int32, T, Boolean>, Func<T, U>, Vector<U>) Method

Applies a function to the elements of a vector.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
protected virtual Vector<U> MapWhereCore<U>(
	Func<int, T, bool> condition,
	Func<T, U> function,
	Vector<U> result
)

Parameters

condition  Func<Int32, T, Boolean>
A predicate that computes whether a value should be mapped based on the index and value of the element.
function  Func<T, U>
A delegate that represents a function of one variable
result  Vector<U>
The vector that is to hold the result. May be null.

Type Parameters

U

Return Value

Vector<U>
The vector result.

See Also