Re: [Help-gsl] Re: free

2006-06-14 Thread Brian Gough
Jochen Küpper writes: > This might be rephrased shorter/better by a native speaker... Thinking > of it, maybe it should even go into the documentation. Okay, I've added some notes to the documentation for those functions. -- Brian Gough Network Theory Ltd, Publishing the GSL Manual - http://w

Re: [Help-gsl] Re: free

2006-06-12 Thread Jochen Küpper
John D Lamb <[EMAIL PROTECTED]> writes: > Brian Gough wrote: >> Jochen Küpper writes: >>> Shouldn't the GSL free-routines be changed like the following patch? >> My thinking on that was that for most people calling the free() >> functions on a null pointer is usually an error rather than by desig

Re: [Help-gsl] Re: free

2006-06-12 Thread John D Lamb
Brian Gough wrote: > Jochen Küpper writes: > > > I checked the source code for gsl_matrix_free and it will fail if passed > > > a null pointer. > > > > Shouldn't the GSL free-routines be changed like the following patch? > > My thinking on that was that for most people calling the free() > fun

[Help-gsl] Re: free

2006-06-12 Thread Brian Gough
Jochen Küpper writes: > > I checked the source code for gsl_matrix_free and it will fail if passed > > a null pointer. > > Shouldn't the GSL free-routines be changed like the following patch? My thinking on that was that for most people calling the free() functions on a null pointer is usuall

[Help-gsl] Re: free

2006-06-11 Thread Jochen Küpper
X-posted and Followup-To: GSL discuss John D Lamb <[EMAIL PROTECTED]> writes: > Jochen Küpper wrote: >>> gsl_matrix_alloc and gsl_matrix free behave like alloc and free and >>> so I guess gsl_matrix_alloc returns 0 on failure and gsl_matrix_free >>> should not be called with a null pointer. [..

[Help-gsl] Re: free

2006-06-11 Thread John D Lamb
Jochen Küpper wrote: >> gsl_matrix_alloc and gsl_matrix free behave like alloc and free and >> so I guess gsl_matrix_alloc returns 0 on failure and gsl_matrix_free >> should not be called with a null pointer. >> > > Actually it should be ok to call free with NULL, just not with any > other inv