Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 56692 invoked from network); 17 Jun 2009 09:02:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jun 2009 09:02:23 -0000 Received: (qmail 91174 invoked by uid 500); 17 Jun 2009 09:02:33 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 91005 invoked by uid 500); 17 Jun 2009 09:02:33 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 90215 invoked by uid 99); 17 Jun 2009 09:02:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2009 09:02:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2009 09:02:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5D10B234C044 for ; Wed, 17 Jun 2009 02:02:07 -0700 (PDT) Message-ID: <1754364674.1245229327367.JavaMail.jira@brutus> Date: Wed, 17 Jun 2009 02:02:07 -0700 (PDT) From: "Mark Anderson (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (MATH-276) Calculate isNan and isFinite in Complex constructor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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.