help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] why disable range checking ? Re: Help-gsl Digest, Vol 81,


From: glide creme
Subject: Re: [Help-gsl] why disable range checking ? Re: Help-gsl Digest, Vol 81, Issue 10
Date: Mon, 9 Aug 2010 18:45:10 +0200

Yes, i wanted to do this, because of speed issues.

But it would seem from the lack of responses,
that it might not be possible afterall to disable the range checking.


2010/7/26 Alejandro Cámara Iglesias <address@hidden>:
> I can think of one: speed.
>
> The range checking probably is two if statements. If your code manage the
> range checking (or you are completely sure that no over/underflow may occur)
> you can disable it to make it faster when you have to access many elements.
>
> Maybe Glide Creme can point out more reasons.
>
> *Alejandro Cámara*
> PhD Student at the GICO <http://www.ucm.es/info/giboucm/>
>
>
>
> 2010/7/26 Awhan Patnaik <address@hidden>
>
>> > Message: 2
>> > Date: Thu, 22 Jul 2010 01:37:55 +0200
>> > From: glide creme <address@hidden>
>> > Subject: [Help-gsl] range check ?
>> > To: address@hidden
>> > Hi I'm having trouble disabling the range checking in the gsl.
>> > I guess I'm abit rusty in the cpreprocessor macro world, so if someone
>> > can elaborate on issue.
>> >
>> > gcc -lgsl gsl.c -lgslcblas -DHAVE_INLINE -DGSL_RANGE_CHECK=0
>> >
>> > I still get the
>> > gsl: ../gsl/gsl_vector_double.h:177: ERROR: index out of range
>> >
>> > To: glide creme <address@hidden>
>> > Cc: address@hidden
>> > Hello Glide,
>> >
>> > I don't have GCC right now but you might want to try using
>> >
>> > -UGSL_RANGE_CHECK
>> >
>> > instead of
>> >
>> > -DGSL_RANGE_CHECK=0
>> >
>> > Best,
>> >
>> > Javier
>> >
>>
>> forgive this offtopic but related question. why would anybody want to
>> disable range checking? i think its a recipe for disaster ... i m
>> surprised to even find such a facility in gsl.
>>
>> _______________________________________________
>> Help-gsl mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/help-gsl
>>
> _______________________________________________
> Help-gsl mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gsl
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]