This is the mail archive of the gsl-discuss@sourceware.org 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: increment a single element of matrix/vector


> *gsl_vector_ptr(v, i) += x

Of course, make sure warnings about expressions without side effects
are turned on.  Otherwise it may be a long debugging session before
you discover a

    gsl_vector_ptr(v, i) += x

mistake for integer-like types.

- Rhys


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