Applies a function to the corresponding elements of two matrices
and returns the result in a new 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,
Matrix<T> first,
Vector<U> second,
Dimension broadcastDimension
)
Public Shared Function Map(Of T, U, V) (
function As Func(Of T, U, V),
first As Matrix(Of T),
second As Vector(Of U),
broadcastDimension As Dimension
) As Matrix(Of V)
public:
generic<typename T, typename U, typename V>
static Matrix<V>^ Map(
Func<T, U, V>^ function,
Matrix<T>^ first,
Vector<U>^ second,
Dimension broadcastDimension
)
static member Map :
function : Func<'T, 'U, 'V> *
first : Matrix<'T> *
second : Vector<'U> *
broadcastDimension : Dimension -> Matrix<'V>
Parameters
- function
- Type: SystemFuncT, U, V
A delegate that represents a function of two variables - first
- Type: Extreme.MathematicsMatrixT
A matrix whose elements serve as the first argument to the function. - second
- Type: Extreme.MathematicsVectorU
A vector whose elements, broadcast in the dimension specified by
broadcastDimension,
serve as the second argument to the function. - broadcastDimension
- Type: Extreme.MathematicsDimension
A value that specifies whether the elements
in second should be broadcast across rows or columns.
Type Parameters
- T
- U
- V
Return Value
Type:
MatrixVA matrix that is the result of applying
function to the corresponding elements
of
first and
second.
Reference