Matrix.Map<T, U>(Func<T, U>, Matrix<T>) Method
Applies a function to the elements of a matrix
and returns the result in a new matrix.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A new matrix.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static Matrix<U> Map<T, U>(
Func<T, U> function,
Matrix<T> matrix
)
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.
Type Parameters
- T
- U
Return Value
Matrix<U>A new matrix.
Exceptions
Argument | function is null.
-or- matrix is null |