commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Anderson (JIRA)" <j...@apache.org>
Subject [jira] Created: (MATH-276) Calculate isNan and isFinite in Complex constructor
Date Wed, 17 Jun 2009 09:02:07 GMT
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.


Mime
View raw message