Vector<T>.Map As First Core<U, V> Method
Applies a function to the corresponding elements of two vectors.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
The result of applying function to the corresponding elements of this vector and second.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
protected virtual Vector<V> MapAsFirstCore<U, V>(
Func<T, U, V> function,
Vector<U> second,
Vector<V>? result
)
Parameters
- function Func<T, U, V>
- A delegate that represents a function of two variables
- second Vector<U>
- A vector whose elements serve as the second 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 this vector and second.
Exceptions
Argument | function is null. -or- second is null. |
Dimension | The length of this vector does not equal the length of second. |