Linq Extensions.Select<T, TResult>(Vector<T>, Func<T, Int 32, TResult>) Method
Projects each element of a vector into a new form by incorporating the elements index.
Definition
Namespace: Extreme.DataAnalysis.Linq
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A vector whose elements are the result of applying selector to each element of vector.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static Vector<TResult> Select<T, TResult>(
this Vector<T> vector,
Func<T, int, TResult> selector
)
Parameters
- vector Vector<T>
- A vector to transform.
- selector Func<T, Int32, TResult>
- A function to apply to each element of the vector and its index.
Type Parameters
- T
- The element type of the vector.
- TResult
- The type of the result.
Return Value
Vector<TResult>A vector whose elements are the result of applying selector to each element of vector.