From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id E0948BC69 for ; Tue, 6 Feb 2007 21:59:42 +0100 (CET) Received: from mail-svr1.cs.utah.edu (mail-svr1.cs.utah.edu [155.98.64.241]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l16KxfG5023224 for ; Tue, 6 Feb 2007 21:59:42 +0100 Received: from localhost (localhost [127.0.0.1]) by mail-svr1.cs.utah.edu (Postfix) with ESMTP id E274765008D for ; Tue, 6 Feb 2007 13:59:37 -0700 (MST) Received: from mail-svr1.cs.utah.edu ([127.0.0.1]) by localhost (mail-svr1.cs.utah.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32216-09 for ; Tue, 6 Feb 2007 13:59:35 -0700 (MST) Received: from [155.98.66.21] (deimos.cs.utah.edu [155.98.66.21]) by smtps.cs.utah.edu (Postfix) with ESMTP id 81DFA65008F for ; Tue, 6 Feb 2007 13:59:29 -0700 (MST) Message-ID: <45C8EC31.6060300@cs.utah.edu> Date: Tue, 06 Feb 2007 13:59:29 -0700 From: Hal Daume III Reply-To: me@hal3.name User-Agent: Thunderbird 1.5.0.5 (X11/20060725) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: non-square big arrays Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at cs.utah.edu X-Miltered: at discorde with ID 45C8EC3D.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; arrays:01 arrays:01 bigarrays:01 bigarrays:01 int:01 talks:03 max:06 maths:06 uses:06 missing:07 cases:08 memory:08 arrest:91 i'm:09 obvious:09 I have code that, right now, uses "int array array" to store lots of things, but in some cases I run out of indices in the outer array (the inner arrays are always fine, but I hit the max array length limit on the outside). I would be happy to switch over to bigarrays, but my understanding is that 2D bigarrays have to be square. I cannot possible have square arrays (it would take too much memory). Is there an obvious way around this that I'm missing? -- Hal Daume III --- me AT hal3 DOT name | http://hal3.name "Arrest this man, he talks in maths." | http://nlpers.blogspot.com