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