From b72659a196a29f223cf67a1bed07b09e30e35d5b Mon Sep 17 00:00:00 2001 From: Marcus Cuda Date: Thu, 23 Jul 2009 22:03:14 +0800 Subject: [PATCH] cannot push, seeing if checking in the changed Complex.cs file helps Signed-off-by: Marcus Cuda --- src/Managed/Complex.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Managed/Complex.cs b/src/Managed/Complex.cs index 5257a4a1..6e666770 100644 --- a/src/Managed/Complex.cs +++ b/src/Managed/Complex.cs @@ -211,7 +211,7 @@ namespace MathNet.Numerics /// true if this instance is zero; otherwise, false. public bool IsZero { - get { throw new NotImplementedException(); } // return Number.AlmostZero(real) && Number.AlmostZero(imag); } + get { return _real.AlmostZero() && _imag.AlmostZero(); } } /// @@ -220,7 +220,7 @@ namespace MathNet.Numerics /// true if this instance is one; otherwise, false. public bool IsOne { - get { throw new NotImplementedException(); } // return Number.AlmostEqual(real, 1) && Number.AlmostZero(imag); } + get { return _real.AlmostEqual(1.0) && _imag.AlmostZero(); } } ///