|
|
|
@ -41,7 +41,6 @@ namespace MathNet.Numerics.LinearAlgebra.Complex |
|
|
|
using Complex = Numerics.Complex; |
|
|
|
#else
|
|
|
|
using Complex = System.Numerics.Complex; |
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -58,6 +57,14 @@ namespace MathNet.Numerics.LinearAlgebra.Complex |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Set all values whose absolute value is smaller than the threshold to zero.
|
|
|
|
/// </summary>
|
|
|
|
public override void CoerceZero(double threshold) |
|
|
|
{ |
|
|
|
MapInplace(x => x.Magnitude < threshold ? Complex.Zero : x, Zeros.AllowSkip); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Calculates the induced L1 norm of this matrix.</summary>
|
|
|
|
/// <returns>The maximum absolute column sum of the matrix.</returns>
|
|
|
|
public override double L1Norm() |
|
|
|
|