bugGNU Scientific Library - Bugs: bug #21830, provide function to retrieve size...

 
 

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

bug #21830: provide function to retrieve size of chebyshev data

Submitted by:  -Deleted Account- <bjg>
Submitted on:  Tue 18 Dec 2007 05:37:31 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Operating System: Status: Fixed
Assigned to: -Deleted Account- <bjg>Open/Closed: Closed
Release: 1.10

Tue 18 Nov 2008 06:49:41 PM UTC, comment #1:

added in 37d91db463e48313b7c5a611b4a8cdfe27225c10

-Deleted Account- <bjg>In charge of this item.
Tue 18 Dec 2007 05:37:31 PM UTC, original submission:

Reply-To: -unavailable-
From: Brian Gough <bjg@network-theory.co.uk>
To: -unavailable-
Subject: Re: [Help-gsl] Writing Chebychev coefficients to disk
Date: Mon, 12 Mar 2007 21:40:21 +0000

At Mon, 12 Mar 2007 10:28:10 -0600,
Patrick Alken wrote:

>
> It seems to me the simplest way to do this is just:
>
> fwrite(gsl_cheb_ptr, sizeof(gsl_cheb_series), 1, fp);
> fwrite(gsl_cheb_ptr->c, sizeof(double), n, fp);
>
> and later:
>
> fread(gsl_cheb_ptr, sizeof(gsl_cheb_series), 1, fp);
> fread(gsl_cheb_ptr->c, sizeof(double), n, fp);
>

Yes, the library should help in getting the correct value of "n"
(which is c->order + 1 in this case) to avoid subtle off-by-one
errors.

It's certainly more useful to expose the memory than provide the read
and write functions directly though.

--
Brian Gough

Network Theory Ltd,
Publishing the GSL Manual - http://www.network-theory.co.uk/gsl/manual/

_____________________________________________
Help-gsl mailing list
-unavailable-
http://lists.gnu.org/mailman/listinfo/help-gsl

-Deleted Account- <bjg>In charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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
Tue 18 Nov 2008 06:49:41 PM UTCbjgStatusConfirmed=>Fixed
  Assigned toNone=>bjg
  Open/ClosedOpen=>Closed
Sun 10 Feb 2008 10:30:19 AM UTCbjgStatusNone=>Confirmed

Back to the top


Powered by Savane 3.1-cleanup