Applies a function to the elements of a matrix.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Matrix<U> MapInto<T, U>(
Func<T, U> function,
Matrix<T> matrix,
Matrix<U> result
)
Public Shared Function MapInto(Of T, U) (
function As Func(Of T, U),
matrix As Matrix(Of T),
result As Matrix(Of U)
) As Matrix(Of U)
public:
generic<typename T, typename U>
static Matrix<U>^ MapInto(
Func<T, U>^ function,
Matrix<T>^ matrix,
Matrix<U>^ result
)
static member MapInto :
function : Func<'T, 'U> *
matrix : Matrix<'T> *
result : Matrix<'U> -> Matrix<'U>
Parameters
- function
- Type: SystemFuncT, U
A delegate that represents a function of one variable - matrix
- Type: Extreme.MathematicsMatrixT
A matrix whose elements
to apply function to. - result
- Type: Extreme.MathematicsMatrixU
The matrix that is to hold the result. May be .
Type Parameters
- T
- U
Return Value
Type:
MatrixUThe matrix
result.
Reference