Vector<T>.Map<U, V>(Func<T, U, V>, Vector<T>, Vector<U>) Method
Applies a function to the corresponding elements of two vectors
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 vector that is the result of applying function to the corresponding elements of first and this vector.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static Vector<V> Map<U, V>(
Func<T, U, V> function,
Vector<T> first,
Vector<U> second
)
Parameters
- function Func<T, U, V>
- A delegate that represents a function of two variables
- first Vector<T>
- A vector whose elements serve as the first argument to the function.
- second Vector<U>
- A vector whose elements serve as the second argument to the function.
Type Parameters
- U
- V
Return Value
Vector<V>A vector that is the result of applying function to the corresponding elements of first and this vector.
Exceptions
Argument | function is null.
-or- first is null -or- second is null |
Dimension | The length of first does not equal the length of second. |