Applies a function to the corresponding elements of a matrix and a vector broadcast
along the specified dimension.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
protected virtual Matrix<V> MapAsFirstCore<U, V>(
Func<T, U, V> function,
Vector<U> second,
Dimension broadcastDimension,
Matrix<V> result
)
Protected Overridable Function MapAsFirstCore(Of U, V) (
function As Func(Of T, U, V),
second As Vector(Of U),
broadcastDimension As Dimension,
result As Matrix(Of V)
) As Matrix(Of V)
protected:
generic<typename U, typename V>
virtual Matrix<V>^ MapAsFirstCore(
Func<T, U, V>^ function,
Vector<U>^ second,
Dimension broadcastDimension,
Matrix<V>^ result
)
abstract MapAsFirstCore :
function : Func<'T, 'U, 'V> *
second : Vector<'U> *
broadcastDimension : Dimension *
result : Matrix<'V> -> Matrix<'V>
override MapAsFirstCore :
function : Func<'T, 'U, 'V> *
second : Vector<'U> *
broadcastDimension : Dimension *
result : Matrix<'V> -> Matrix<'V>
Parameters
- function
- Type: SystemFuncT, U, V
A delegate that represents a function of two variables - 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. - 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 this matrix and
second.
Reference