Matrix.Map Into<T, U>(Func<T, U>, Matrix<T>, Matrix<U>) Method
Applies a function to the elements of a matrix.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The matrix result.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static Matrix<U> MapInto<T, U>(
Func<T, U> function,
Matrix<T> matrix,
Matrix<U> result
)
Parameters
- function Func<T, U>
- A delegate that represents a function of one variable
- matrix Matrix<T>
- A matrix whose elements to apply function to.
- result Matrix<U>
- The matrix that is to hold the result. May be null.
Type Parameters
- T
- U
Return Value
Matrix<U>The matrix result.
Exceptions
Argument | function is null. |