Matrix Extensions.Get Magnitude<T> Method
Returns the magnitude of each element of a complex matrix as a real matrix.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A matrix with element type T containing the magnitude of the corresponding elements of matrix.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static Matrix<T> GetMagnitude<T>(
this Matrix<Complex<T>> matrix
)
Parameters
Type Parameters
- T
- The element type of the real matrix.
Return Value
Matrix<T>A matrix with element type T containing the magnitude of the corresponding elements of matrix.