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


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

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

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

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

added in 37d91db463e48313b7c5a611b4a8cdfe27225c10

-Deleted Account- <bjg>
Tue 18 Dec 2007 05:37:31 PM UTC, original submission:  

Reply-To: -email is unavailable-
From: Brian Gough <bjg@network-theory.co.uk>
To: -email is 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

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
-email is unavailable-

-Deleted Account- <bjg>


(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


CC list is empty


Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2008-11-18 bjg StatusConfirmed Fixed
    Assigned toNone bjg
    Open/ClosedOpen Closed
2008-02-10 bjg StatusNone Confirmed

Back to the top

Powered by Savane 3.12.
Corresponding source code