Applies a function to the corresponding elements of two matrices.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
protected virtual Matrix<V> MapAsSecondCore<U, V>(
Func<U, T, V> function,
Matrix<U> first,
Matrix<V> result
)
Protected Overridable Function MapAsSecondCore(Of U, V) (
function As Func(Of U, T, V),
first As Matrix(Of U),
result As Matrix(Of V)
) As Matrix(Of V)
protected:
generic<typename U, typename V>
virtual Matrix<V>^ MapAsSecondCore(
Func<U, T, V>^ function,
Matrix<U>^ first,
Matrix<V>^ result
)
abstract MapAsSecondCore :
function : Func<'U, 'T, 'V> *
first : Matrix<'U> *
result : Matrix<'V> -> Matrix<'V>
override MapAsSecondCore :
function : Func<'U, 'T, 'V> *
first : Matrix<'U> *
result : Matrix<'V> -> Matrix<'V>
Parameters
- function
- Type: SystemFuncU, T, V
A delegate that represents a function of two variables - first
- Type: Extreme.MathematicsMatrixU
A matrix whose elements serve as the first argument to the function. - result
- Type: Extreme.MathematicsMatrixV
The matrix that is to hold the result. May be .
Type Parameters
- U
- V
Return Value
Type:
MatrixVThe result of applying
function to the corresponding elements
of
first and this matrix.
Exception | Condition |
---|
ArgumentNullException | function is .
-or- first is |
DimensionMismatchException | The number of rows of this matrix does not equal the number of rows of first. -or- The number of columns of this matrix does not equal the number of columns of first. |
Reference