Applies a function to the corresponding elements of two matrices
and returns the result in a third matrix.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Matrix<V> MapInto<T, U, V>(
Func<T, U, V> function,
Vector<T> first,
Dimension broadcastDimension,
Matrix<U> second,
Matrix<V> result
)
Public Shared Function MapInto(Of T, U, V) (
function As Func(Of T, U, V),
first As Vector(Of T),
broadcastDimension As Dimension,
second As Matrix(Of U),
result As Matrix(Of V)
) As Matrix(Of V)
public:
generic<typename T, typename U, typename V>
static Matrix<V>^ MapInto(
Func<T, U, V>^ function,
Vector<T>^ first,
Dimension broadcastDimension,
Matrix<U>^ second,
Matrix<V>^ result
)
static member MapInto :
function : Func<'T, 'U, 'V> *
first : Vector<'T> *
broadcastDimension : Dimension *
second : Matrix<'U> *
result : Matrix<'V> -> Matrix<'V>
Parameters
- function
- Type: SystemFuncT, U, V
A delegate that represents a function of two variables - first
- Type: Extreme.MathematicsVectorT
A vector whose elements, broadcast in the dimension specified by
broadcastDimension,
serve as the first argument to the function. - broadcastDimension
- Type: Extreme.MathematicsDimension
A value that specifies whether the elements
in first should be broadcast across rows or columns. - second
- Type: Extreme.MathematicsMatrixU
A matrix whose elements serve as the second argument to the function. - result
- Type: Extreme.MathematicsMatrixV
The matrix that is to hold the result. May be .
Type Parameters
- T
- U
- V
Return Value
Type:
MatrixVThe result of applying
function to the corresponding elements
of
first and
second.
Exception | Condition |
---|
ArgumentNullException | function is .
-or- first is -or- second is |
DimensionMismatchException | The number of rows of first does not equal the number of rows of second. -or- The number of columns of first does not equal the number of columns of second. |
Reference