Vector<T>.MapWhereCore Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

MapWhereCore<U>(Func<T, Boolean>, Func<T, U>, Vector<U>) Applies a function to the elements of a vector.
MapWhereCore<U>(Func<Int32, T, Boolean>, Func<T, U>, Vector<U>) Applies a function to the elements of a vector.

MapWhereCore<U>(Func<T, Boolean>, Func<T, U>, Vector<U>)

Applies a function to the elements of a vector.
C#
protected virtual Vector<U> MapWhereCore<U>(
	Func<T, bool> condition,
	Func<T, U> function,
	Vector<U> result
)

Parameters

condition  Func<T, Boolean>
A predicate that computes whether a value should be mapped.
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.

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

Applies a function to the elements of a vector.
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