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

Submitted by:  Patrick Alken <psa>
Submitted on:  Mon 09 Sep 2013 05:53:58 PM UTC  
Category: NoneSeverity: 3 - Normal
Operating System: Status: Fixed
Assigned to: Brian Gladman <gladman>Open/Closed: Closed

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

Now fixed in the repository version of GSL

Brian Gladman <gladman>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project 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>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 07 May 2014 09:35:24 AM UTCgladmanStatusPostponed=>Fixed
    Sat 05 Oct 2013 03:54:14 PM UTCgladmanStatusNone=>Postponed
    Wed 02 Oct 2013 09:28:50 AM UTCgladmanAssigned toNone=>gladman

    Back to the top

    Powered by Savane 3.1-cleanup1