From: Faheem Mitha <faheem@email.unc.edu>
To: <gsl-discuss@sources.redhat.com>
Subject: modifying matrix allocation functions for use with R
Date: Wed, 19 Dec 2001 13:20:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.33.0110051535210.7289-100000@Chrestomanci> (raw)
Dear People,
Here is a relatively esoteric question. Some of you may be familiar with
R (sometimes called GNU S) which does statistical stuff. It is possible to
use C code compiled into a shared library as a backend for R. Now, I was
wanting to use some GSL routines in this code.
In particular, I need to use allocation functions like gsl_matrix_alloc.
Unfortunately, I'm not sure whether standard calloc/malloc that are used
work with R. I'm going to check this, but I think the answer is most
likely no. R uses a routine called R_alloc which takes storage from the R
heap and manages the cleanup itself (so you don't need to use free).
One option I was considering was rewriting gsl_matrix_alloc (leaving out
the error checking) in terms of R_alloc. However, I can't find the code
for FUNCTION(gsl_block, alloc) (I assume this means gsl_block_alloc)
used in the code for gsl_matrix_alloc. gsl_matrix_alloc itself seems to be
in matrix/init_source.c. Can someone point me to the code for
gsl_block_alloc, or suggest any other options?
I'm not subscribed to the list, so I would be obliged if you would cc me.
Sincerely, Faheem Mitha.
next reply other threads:[~2001-12-19 13:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-19 13:20 Faheem Mitha [this message]
2001-12-19 13:20 ` Timothy H. Keitt
2001-12-19 13:20 ` Brian Gough
2001-12-19 13:20 ` Faheem Mitha
2001-12-19 13:20 ` Brian Gough
2001-12-19 13:20 ` calculating matrix inverses (was Re: modifying matrix allocationfunctions for use with R) Faheem Mitha
2001-12-19 13:20 ` James Theiler
2001-12-19 13:20 ` Faheem Mitha
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=Pine.LNX.4.33.0110051535210.7289-100000@Chrestomanci \
--to=faheem@email.unc.edu \
--cc=gsl-discuss@sources.redhat.com \
/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).