Vector<T>.Map<U>(Func<T, U>, Vector<T>) Method
Applies a function to the elements of a vector
and returns the result in a new vector.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A new vector.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static Vector<U> Map<U>(
Func<T, U> function,
Vector<T> vector
)
Parameters
- function Func<T, U>
- A delegate that represents a function of one variable
- vector Vector<T>
- A vector whose elements to apply function to.
Type Parameters
- U
Return Value
Vector<U>A new vector.
Exceptions
Argument | function is null.
-or- vector is null |