Applies a function to the corresponding elements of two vectors
and returns the result in a new vector.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<V> Map<T, U, V>(
Func<T, U, V> function,
Vector<T> first,
Vector<U> second
)
Public Shared Function Map(Of T, U, V) (
function As Func(Of T, U, V),
first As Vector(Of T),
second As Vector(Of U)
) As Vector(Of V)
public:
generic<typename T, typename U, typename V>
static Vector<V>^ Map(
Func<T, U, V>^ function,
Vector<T>^ first,
Vector<U>^ second
)
static member Map :
function : Func<'T, 'U, 'V> *
first : Vector<'T> *
second : Vector<'U> -> Vector<'V>
Parameters
- function
- Type: SystemFuncT, U, V
A delegate that represents a function of two variables - first
- Type: Extreme.MathematicsVectorT
A vector whose elements serve as the first argument to the function. - second
- Type: Extreme.MathematicsVectorU
A vector whose elements serve as the second argument to the function.
Type Parameters
- T
- U
- V
Return Value
Type:
VectorVA vector that is the result of applying
function to the corresponding elements
of
first and this vector.
Reference