Calculate isNan and isFinite in Complex constructor
---------------------------------------------------

                 Key: MATH-276
                 URL: https://issues.apache.org/jira/browse/MATH-276
             Project: Commons Math
          Issue Type: Improvement
    Affects Versions: 2.0
            Reporter: Mark Anderson
            Priority: Minor
             Fix For: 2.0
         Attachments: Complex.patch

>From profiling some code performing a large number of FFT operations I found 
>that due to isNaN being called as part of complex arithmetic a large 
>proportion of time was spent within isNaN.

I would propose calculating isNaN and isFinite in the constructor to save 
calculating these values each time the methods are called.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to