Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Large Foreign Arrays for OCAML -- Code Released
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-03-05 (09:02)
From: David McClain <dmcclain@a...>
Subject: Large Foreign Arrays for OCAML -- Code Released
I apologize for the double posting... This one should be in plain text!

The code implementing Large Foreign Numeric Arrays for OCAML is now released
and available at my Web site. You can download the sources from my homepage.
This code has been used extensively for the past month for heavy-duty image
processing of large image stacks, so it appears to be quite robust. But, of
course, should it fail on you, please let me know about it.

There is an "arena" type declared as equivalent to a "float array", but in
fact, this subverts the type checking system and the object may or may not
be a float array. As a result, be careful and do not attempt any array
operations on such objects, except for Array.unsafe_get and
Array.unsafe_set, typically within tight "" loops.

The zip file named "" contains two OCAML sources and two C++
sources implementing the foreign arrays. Array size is limited by your
address space now, and can be as large as 2^29 elements (of doubles, or 2^31
elements of bytes) on a 32-bit architecture.

David McClain
Sr. Scientist
Raytheon Missile Systems Co.
Tucson, AZ