Vector<T>.Map<U>(Func<T, U>) Method

Applies a function to the elements of a vector and returns the result.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public Vector<U> Map<U>(
	Func<T, U> function
)

Parameters

function  Func<T, U>
A delegate that represents a function of one variable

Type Parameters

U

Return Value

Vector<U>
The result of applying function to each element of this vector.

Exceptions

ArgumentNullExceptionfunction is null.

See Also