caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Thomas Fischbacher <tf@functionality.de>
To: Caml-list List <caml-list@inria.fr>
Subject: Bigarray question
Date: Tue, 18 Dec 2007 17:44:25 +0000	[thread overview]
Message-ID: <476806F9.4030100@functionality.de> (raw)


Hello everybody,

as far as I can tell, it is easy (but not explicitly allowed in the
documentation) to allocate a Caml bigarray and change the data
pointer inside that bigarray afterwards.

What I am into right now is writing a function which allows me to
walk a caml function over the entries of a sparse matrix operator
managed by a low-level sparse matrix linear algebra C library.
Therefore, it would be rather elegant to allocate bigarrays for
index and data entries only once and pass them on to the ML
callback for every row of the matrix.

There is no problem in implementing this, technically speaking.
But this would require a change to the ML documentation stating
that it is explicitly considered as permissible to change the
data pointer in a bigarray. Can I get that, please?

-- 
best regards,
Thomas Fischbacher
t.fischbacher@soton.ac.uk


             reply	other threads:[~2007-12-18 17:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-18 17:44 Thomas Fischbacher [this message]
2007-12-19 17:47 ` [Caml-list] " Xavier Leroy
2007-12-19 19:15   ` Thomas Fischbacher
2008-01-28 12:57   ` Thomas Fischbacher
  -- strict thread matches above, loose matches on Subject: below --
2005-11-25 18:19 Thomas Fischbacher

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=476806F9.4030100@functionality.de \
    --to=tf@functionality.de \
    --cc=caml-list@inria.fr \
    /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 NNTP newsgroup(s).