bugGNU Scientific Library - Bugs: bug #39990, Use standard function names for...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #39990: Use standard function names for Mathieu function calls

Submitter:  Patrick Alken <psa>
Submitted:  Mon 09 Sep 2013 05:53:58 PM UTC
   
 
Category:  None Severity:  3 - Normal
Operating System:  Status:  Fixed
Assigned to:  gladman Open/Closed:  Closed
Release: 

Wed 07 May 2014 09:35:24 AM UTC, comment #3: 

Now fixed in the repository version of GSL

Brian Gladman <gladman>
Group Member
Sun 10 Nov 2013 10:54:37 AM UTC, comment #2: 

Fixed in the GSL 2.x development branch of the GIT repository

Brian Gladman <gladman>
Group Member
Mon 09 Sep 2013 05:55:09 PM UTC, comment #1: 

This bug should be fixed for the v2.0 release, as it will require breaking binary compatibility (current function names renamed to _e and new functions added using current function names but different API calls)

Patrick Alken <psa>
Group administrator
Mon 09 Sep 2013 05:53:58 PM UTC, original submission:  

The GSL special functions are each supposed to have two alternative
functional interfaces, a pure one:

double function(x, ...)

and one allowing for full error returns:

int function_e(x, ...  gsl_sf_result * result)

But the Mathieu function code doesn't follow this convention.

It doesn't offer the former interface at all and uses the second
convention for all its functions BUT without the '_e' name extension on
its function declarations.

This is quite error prone since it is easy to assume that *gsl_sf_result
is simply a reference to a double when in fact it is a structure that is
longer than this (a library user on Windows made exactly this mistake
and wondered why his code was causing an illegal access exception).

I am doubtful that this is an intentional feature of the Mathieu
function code so I have created the attached patch to update the code to
use the normal conventions of the GSL special functions.  (this needs
testing since I have only tried it on WIndows).

Patrick Alken <psa>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gladman (Updated the item)
  • -email is unavailable- added by psa (Submitted the item)
  •  

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-07 gladman StatusPostponed Fixed
        Open/ClosedOpen Closed
    2013-10-05 gladman StatusNone Postponed
    2013-10-02 gladman Assigned toNone gladman

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code