This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: What about setting chebyshev coefficients directly


Brian Gough wrote:

=?ISO-8859-15?Q?Achim_G=E4dke?= writes:
> I'd like to describe a current-distribution by a chebishev-series,
> but like to manipulate the coeffitients directly, not by providing
> a function to approximate.
> > Is there anything, that might cause trouble by including a simple
> function for that (I'll provide it...)

Should be fine.
The current interface is not ideal (cs->f[] is probably unnecessary
and could be replaced by an independent workspace, but better to leave
it now).

I will have to change the allocation from malloc to calloc in gsl_cheb_alloc, in order to provide usefull initial values.
I wonder if I can use the feature gsl_check_ranges here, too. Is it a local variable for gsl_vector/gsl_matrix or should it be global?

Achim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]