This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Some cleanup/documentation issues
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: ronis at onsager dot chem dot mcgill dot ca
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Wed, 1 May 2002 21:32:12 +0100 (BST)
- Subject: Re: Some cleanup/documentation issues
- References: <15566.65176.61058.282185@ronispc.chem.mcgill.ca>
David Ronis writes:
>
> I'm using gsl-1.1.1 on an i686-linux-gnu box. Two small problems and
> one question.
>
> 1. I've written some code that has #define GSL_RANGE_CHECK_OFF
> #define HAVE_INLINE defined; when compiling with -Wall I get errors
> like...
>
> 2. I'm using gsl_multiroot_test_delta() to check whether a root
> finding iteration has converged....
> In any event, the documentation needs to mention how to get dx.
Hi,
Thanks for the comments. I'll fix those.
> 3. Finally, I have to do a lot of vector manipulations in the
> function I'm trying to zero, and I'd like to eliminate all the
> overhead associated with calls to gsl_vector_get/set. Can I assume
> that stride is 1 for all vectors? If so, I can access the data member
> directly, and faster.
You can assume stride=1 if that is what the original input vector uses.
It would be worth adding an assertion like if (stride != 1) abort();
in your function just to be safe.
regards
Brian Gough