Vector<T>.Map As Second Core<U, V> Method
Applies a function to the corresponding elements of two vectors.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
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
protected virtual Vector<V> MapAsSecondCore<U, V>(
Func<U, T, V> function,
Vector<U> first,
Vector<V> result
)
Parameters
- function Func<U, T, V>
- A delegate that represents a function of two variables
- first Vector<U>
- A vector whose elements serve as the first argument to the function.
- result Vector<V>
- The vector that is to hold the result. May be null.
Type Parameters
- U
- V
Return Value
Vector<V>The result of applying function to the corresponding elements of first and this vector.
Exceptions
Argument | function is null.
-or- first is null |
Dimension | The length of first does not equal the length of this vector. |