Projects each element of a vector to a vector and flattens the resulting
vectors into one vector.
Namespace:
Extreme.DataAnalysis.Linq
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static IEnumerable<TResult> SelectMany<T, TResult>(
this Vector<T> vector,
Func<T, IEnumerable<TResult>> selector
)
<ExtensionAttribute>
Public Shared Function SelectMany(Of T, TResult) (
vector As Vector(Of T),
selector As Func(Of T, IEnumerable(Of TResult))
) As IEnumerable(Of TResult)
public:
[ExtensionAttribute]
generic<typename T, typename TResult>
static IEnumerable<TResult>^ SelectMany(
Vector<T>^ vector,
Func<T, IEnumerable<TResult>^>^ selector
)
[<ExtensionAttribute>]
static member SelectMany :
vector : Vector<'T> *
selector : Func<'T, IEnumerable<'TResult>> -> IEnumerable<'TResult>
Parameters
- vector
- Type: Extreme.MathematicsVectorT
A vector to project. - selector
- Type: SystemFuncT, IEnumerableTResult
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
Type:
IEnumerableTResultA 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
VectorT. 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).
Reference