LinqExtensions.Select<T, TResult>(Vector<T>, Func<T, TResult>) Method

Projects each element of a vector into a new form.

Definition

Namespace: Extreme.DataAnalysis.Linq
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Vector<TResult> Select<T, TResult>(
	this Vector<T> vector,
	Func<T, TResult> selector
)

Parameters

vector  Vector<T>
A vector to transform.
selector  Func<T, 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

Vector<TResult>
A 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 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