Maps two broadcast vectors to form a matrix.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Matrix<V> Map<T, U, V>(
Func<T, U, V> function,
Vector<T> first,
Dimension firstBroadcastDimension,
Vector<U> second
)
Public Shared Function Map(Of T, U, V) (
function As Func(Of T, U, V),
first As Vector(Of T),
firstBroadcastDimension As Dimension,
second As Vector(Of U)
) As Matrix(Of V)
public:
generic<typename T, typename U, typename V>
static Matrix<V>^ Map(
Func<T, U, V>^ function,
Vector<T>^ first,
Dimension firstBroadcastDimension,
Vector<U>^ second
)
static member Map :
function : Func<'T, 'U, 'V> *
first : Vector<'T> *
firstBroadcastDimension : Dimension *
second : Vector<'U> -> Matrix<'V>
Parameters
- function
- Type: SystemFuncT, U, V
A delegate that represents a function of two variables - first
- Type: Extreme.MathematicsVectorT
A vector. - firstBroadcastDimension
- Type: Extreme.MathematicsDimension
A value that specifies whether the elements
in first should be broadcast across rows or columns. - second
- Type: Extreme.MathematicsVectorU
A vector.
Type Parameters
- T
- U
- V
Return Value
Type:
MatrixVA matrix whose elements are
the sum of the corresponding elements of
first and
second.
Reference