From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA04582 for caml-redistribution; Fri, 5 Mar 1999 10:02:22 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id GAA01590 for ; Fri, 5 Mar 1999 06:29:24 +0100 (MET) Received: from pegasus.azstarnet.com (pegasus.azstarnet.com [169.197.56.194]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id GAA16555 for ; Fri, 5 Mar 1999 06:29:21 +0100 (MET) Received: from dylan (dialup01ip046.tus.azstarnet.com [169.197.30.46]) by pegasus.azstarnet.com (8.9.1a/8.9.1a) with SMTP id WAA09009 for ; Thu, 4 Mar 1999 22:29:03 -0700 (MST) X-Sent-via: StarNet http://www.azstarnet.com/ Message-ID: <001b01be66c9$470174d0$210148bf@dylan> From: "David McClain" To: "Liste CAML" Subject: Large Foreign Arrays for OCAML -- Code Released Date: Thu, 4 Mar 1999 22:30:24 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: weis 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 "for...do" loops. The zip file named "bigarray.zip" 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 http://www.azstarnet.com/~dmcclain/homepage.htm