[Gsll-devel] chebyshev.lisp/coefficients returns pointer. How to get to the vector?
Hello, According to the documentation, `gsl_cheb_coeffs' returns a pointer to the vector with coefficients: (http://www.gnu.org/software/gsl/manual/html_node/Auxiliary-Functions-for-Che...) The corresponding gsll functions `coefficients' declares the c-return as sizet (I am not sure if that is correct), and does not return a vector but an integer. GSL> (coefficients (make-chebyshev 40 'chebyshev-step 0d0 1d0)) 6543008 GSL> I am assuming it is the pointer to the vector. I could not figure out how to make it return the actual coefficients vector. Thanks, Mirko
Thanks for the report. This is fixed now; you will need to do a fresh pull of both GSD and GSLL. Also I added docstrings for #'coefficient, #'size, and #'order. Liam On Tue, Apr 13, 2010 at 10:21 AM, Mirko Vukovic <mirko.vukovic@gmail.com> wrote:
Hello,
According to the documentation, `gsl_cheb_coeffs' returns a pointer to the vector with coefficients:
(http://www.gnu.org/software/gsl/manual/html_node/Auxiliary-Functions-for-Che...)
The corresponding gsll functions `coefficients' declares the c-return as sizet (I am not sure if that is correct), and does not return a vector but an integer.
GSL> (coefficients (make-chebyshev 40 'chebyshev-step 0d0 1d0)) 6543008 GSL>
I am assuming it is the pointer to the vector. I could not figure out how to make it return the actual coefficients vector.
Thanks,
Mirko
participants (2)
-
Liam Healy
-
Mirko Vukovic