Vector<T>.Map Where Core Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Map | Applies a function to the elements of a vector. |
Map | 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.
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.
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.