LinqExtensions.SelectMany<T, TResult>(Vector<T>, Func<T, Int32, 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#
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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also