From: "Daniel Bünzli" <daniel.buenzli@epfl.ch>
To: Damien Bobillot <damien.bobillot@m4x.org>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] doing MMX through ocaml
Date: Thu, 17 Nov 2005 23:43:37 +0100 [thread overview]
Message-ID: <9C9F3FAE-A9B5-4505-804C-AD8A136FFC5D@epfl.ch> (raw)
In-Reply-To: <CE131290-E604-466D-8908-809610F4BBB3@m4x.org>
Le 17 nov. 05 à 23:16, Damien Bobillot a écrit :
> PS : I think it will perhaps have the same problems as floating
> computation, which is not really efficient. As far as I know,
> floats are not stored as float in memory, but as a generic ocaml
> value : a pointer to a structure contains a tag indicating that
> it's a float, and after the IEEE float value.
This not exactly true. As an exception, they are unboxed in records
and arrays made of floats only [1,2].
Note that you can also use bigarrays [3] to have unboxed arrays of
any scalar datatype.
This page [4] (unfortunately not available in the faq of the new
ocaml site) contains interesting information about writing numerical
code in ocaml.
Best,
Daniel
[1] <http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html#htoc218>
[2] <http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html#htoc219>
[3] <http://caml.inria.fr/pub/docs/manual-ocaml/manual043.html#htoc261>
[4] <http://caml.inria.fr/pub/old_caml_site/ocaml/numerical.html>
next prev parent reply other threads:[~2005-11-17 22:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-17 21:13 Jonathan Roewen
2005-11-17 21:47 ` Oliver Bandel
2005-11-17 21:57 ` Jonathan Roewen
2005-11-17 22:16 ` Damien Bobillot
2005-11-17 22:43 ` Daniel Bünzli [this message]
2005-11-17 22:55 ` Jonathan Roewen
2005-11-18 1:26 ` Vincenzo Ciancia
2005-11-18 10:04 ` [Caml-list] " Alessandro Baretta
2005-11-17 22:55 ` Damien Bobillot
2005-11-17 23:01 ` Vincenzo Ciancia
2005-11-17 23:49 ` [Caml-list] " Erik de Castro Lopo
2005-11-18 1:52 ` Grégory Guyomarc'h
2005-11-18 3:06 ` Brian Hurt
2005-11-18 3:29 ` Jonathan Roewen
2005-11-18 19:22 ` Ken Rose
2005-11-21 9:11 ` Sebastian Egner
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=9C9F3FAE-A9B5-4505-804C-AD8A136FFC5D@epfl.ch \
--to=daniel.buenzli@epfl.ch \
--cc=caml-list@yquem.inria.fr \
--cc=damien.bobillot@m4x.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