This is the mail archive of the
gsl-discuss@sourceware.org
mailing list for the GSL project.
Re: increment a single element of matrix/vector
- From: Rhys Ulerich <rhys dot ulerich at gmail dot com>
- To: Patrick Alken <patrick dot alken at colorado dot edu>
- Cc: "gsl-discuss at sourceware dot org" <gsl-discuss at sourceware dot org>
- Date: Mon, 27 Jan 2014 20:14:42 -0600
- Subject: Re: increment a single element of matrix/vector
- Authentication-results: sourceware.org; auth=none
- References: <52E6EFF3 dot 1000808 at colorado dot edu> <CAKDqugSbjFausECoC3Bm_JdYtOK9VwuG_nkOKtqk4A_e+Cb0Bw at mail dot gmail dot com>
> *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