caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Damien Bobillot <damien.bobillot@m4x.org>
To: "Daniel Bünzli" <daniel.buenzli@epfl.ch>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] doing MMX through ocaml
Date: Thu, 17 Nov 2005 23:55:42 +0100	[thread overview]
Message-ID: <D459B7C2-A058-4C1A-91BD-0C0A3BD9FF1F@m4x.org> (raw)
In-Reply-To: <9C9F3FAE-A9B5-4505-804C-AD8A136FFC5D@epfl.ch>

[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]


Le 17 nov. 05 à 23:43, Daniel Bünzli a écrit :

>
> 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.

Ok, and thank you for the references.

Perhaps, writing a bigarray-like module for vectorized operation may  
be the solution.

> [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>


-- 
Damien alias Schmurtz
aim:goim?screenname=schmuuurtz


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2375 bytes --]

  parent reply	other threads:[~2005-11-17 22:55 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
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 [this message]
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=D459B7C2-A058-4C1A-91BD-0C0A3BD9FF1F@m4x.org \
    --to=damien.bobillot@m4x.org \
    --cc=caml-list@yquem.inria.fr \
    --cc=daniel.buenzli@epfl.ch \
    /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).