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: Some cleanup/documentation issues


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



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