Browse thread
single-precision floats, etc.
-
Chris Hecker
-
Pierre.Boulet@l...
-
Chris Hecker
- Stephan Houben
-
Chris Hecker
- Xavier Leroy
-
Pierre.Boulet@l...
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Stephan Houben <stephan@p...> |
| Subject: | Re: single-precision floats, etc. |
On Wed, 18 Oct 2000, Chris Hecker wrote: > >I think that maybe what you are looking for is the bigarray library > >that appeared with ocaml 3.00. > > I looked at that, but I really wanted to do the actual operations in caml code, not in a library (if possible). So, I'd like to write an LU decomposition routine in caml that's as fast as C code (or close enough), for example. Going out to another language is inconvenient at best, compared to just writing down the code you want (like you would in C). But even 32 bit floats cannot be represented as an unboxed ML value, since you need at least 1 other bit to tell you that it's not a pointer. (Otherwise the precise GC will get confused.) This could of course be remedied if Caml switched to a conservative GC, but then GC performance would go down the drain. -- ir. Stephan H.M.J. Houben tel. +31-40-2474358 / +31-40-2743497 e-mail: stephanh@win.tue.nl