Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 52887 invoked from network); 28 Jun 2010 12:18:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Jun 2010 12:18:52 -0000 Received: (qmail 66004 invoked by uid 500); 28 Jun 2010 12:18:52 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 65612 invoked by uid 500); 28 Jun 2010 12:18:49 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 65604 invoked by uid 99); 28 Jun 2010 12:18:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 12:18:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 12:18:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5SCArRf017104 for ; Mon, 28 Jun 2010 12:10:54 GMT Message-ID: <16430168.89501277727053296.JavaMail.jira@thor> Date: Mon, 28 Jun 2010 08:10:53 -0400 (EDT) From: "Gilles (JIRA)" To: issues@commons.apache.org Subject: [jira] Resolved: (MATH-379) Multidimensional counter In-Reply-To: <11904703.37661277378390427.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MATH-379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gilles resolved MATH-379. ------------------------- Fix Version/s: 2.2 Resolution: Fixed Added code (with additional comments and unit tests) in r958552. > Multidimensional counter > ------------------------ > > Key: MATH-379 > URL: https://issues.apache.org/jira/browse/MATH-379 > Project: Commons Math > Issue Type: New Feature > Reporter: Gilles > Assignee: Gilles > Priority: Minor > Fix For: 2.2 > > Attachments: MultidimensionalCounter.java > > > Utility that converts from indices in a multidimensional structure to the corresponding index in a one-dimensional array. > E.g. assuming that the ranges (in 3D) of indices are {2, 4, 3}, we'll have that > (0, 0, 0) corresponds to 0 > (0, 0, 1) corresponds to 1 > ... > (1, 0, 0) corresponds to 12 > ... > (1, 3, 2) corresponds to 23 > I propose to add this class in the "util" package. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.