From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23619 invoked by alias); 28 Jan 2014 02:15:07 -0000 Mailing-List: contact gsl-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sourceware.org Received: (qmail 23605 invoked by uid 89); 28 Jan 2014 02:15:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f47.google.com Received: from mail-wg0-f47.google.com (HELO mail-wg0-f47.google.com) (74.125.82.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 28 Jan 2014 02:15:05 +0000 Received: by mail-wg0-f47.google.com with SMTP id m15so6596520wgh.2 for ; Mon, 27 Jan 2014 18:15:02 -0800 (PST) X-Received: by 10.181.13.112 with SMTP id ex16mr13895555wid.23.1390875302326; Mon, 27 Jan 2014 18:15:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.60.137 with HTTP; Mon, 27 Jan 2014 18:14:42 -0800 (PST) In-Reply-To: References: <52E6EFF3.1000808@colorado.edu> From: Rhys Ulerich Date: Tue, 28 Jan 2014 02:15:00 -0000 Message-ID: Subject: Re: increment a single element of matrix/vector To: Patrick Alken Cc: "gsl-discuss@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2014-q1/txt/msg00019.txt.bz2 > *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