Projects each element of a vector into a new form.
Namespace:
Extreme.DataAnalysis.Linq
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<TResult> Select<T, TResult>(
this Vector<T> vector,
Func<T, TResult> selector
)
<ExtensionAttribute>
Public Shared Function Select(Of T, TResult) (
vector As Vector(Of T),
selector As Func(Of T, TResult)
) As Vector(Of TResult)
public:
[ExtensionAttribute]
generic<typename T, typename TResult>
static Vector<TResult>^ Select(
Vector<T>^ vector,
Func<T, TResult>^ selector
)
[<ExtensionAttribute>]
static member Select :
vector : Vector<'T> *
selector : Func<'T, 'TResult> -> Vector<'TResult>
Parameters
- vector
- Type: Extreme.MathematicsVectorT
A vector to transform. - selector
- Type: SystemFuncT, TResult
A function to apply to each element of the vector.
Type Parameters
- T
- The element type of the vector.
- TResult
- The type of the result.
Return Value
Type:
VectorTResultA vector whose elements are the result of applying
selector to 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