From: Patrick Alken <patrick.alken@Colorado.EDU>
To: "gsl-discuss@sourceware.org" <gsl-discuss@sourceware.org>
Subject: increment a single element of matrix/vector
Date: Mon, 27 Jan 2014 23:47:00 -0000 [thread overview]
Message-ID: <52E6EFF3.1000808@colorado.edu> (raw)
I was thinking of adding two routines to GSL, to increment a single
element of a matrix or vector by some amount, since I'm always doing
things like:
gsl_vector_set(v, i, gsl_vector_get(v, i) + x);
which I think is ugly and annoying. Something like:
gsl_vector_add_element(v, i, x);
or
gsl_matrix_add_element(m, i, j, x);
would be really nice. Does anyone have any better suggestions for the
function name? Or also is there another solution to this problem that I
don't know about?
Patrick
next reply other threads:[~2014-01-27 23:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-27 23:47 Patrick Alken [this message]
2014-01-28 2:08 ` Rhys Ulerich
2014-01-28 2:15 ` Rhys Ulerich
2014-01-28 3:06 ` Patrick Alken
2014-01-28 20:45 ` Patrick Alken
2014-01-28 21:16 ` Rhys Ulerich
2014-01-28 21:26 ` Patrick Alken
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52E6EFF3.1000808@colorado.edu \
--to=patrick.alken@colorado.edu \
--cc=gsl-discuss@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).