Linq Extensions.Select Many<T, TResult>(Vector<T>, Func<T, Int 32, IEnumerable<TResult>>) Method
Projects each element of a vector to a vector incorporating the element's index
and flattens the resulting vectors into one vector.
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 invoking the function selector on each element of vector.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static IEnumerable<TResult> SelectMany<T, TResult>(
this Vector<T> vector,
Func<T, int, IEnumerable<TResult>> selector
)
Parameters
- vector Vector<T>
- A vector to project.
- selector Func<T, Int32, IEnumerable<TResult>>
- A function to apply to each element.
Type Parameters
- T
- The type of the elements of the vector.
- TResult
- The type of the result.
Return Value
IEnumerable<TResult>A vector whose elements are the result of invoking the function selector on each element of vector.