Return-Path: X-Original-To: apmail-mahout-dev-archive@www.apache.org Delivered-To: apmail-mahout-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DA41E951F for ; Mon, 8 Oct 2012 21:44:05 +0000 (UTC) Received: (qmail 23803 invoked by uid 500); 8 Oct 2012 21:44:03 -0000 Delivered-To: apmail-mahout-dev-archive@mahout.apache.org Received: (qmail 23703 invoked by uid 500); 8 Oct 2012 21:44:03 -0000 Mailing-List: contact dev-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mahout.apache.org Delivered-To: mailing list dev@mahout.apache.org Received: (qmail 23465 invoked by uid 99); 8 Oct 2012 21:44:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2012 21:44:03 +0000 Date: Mon, 8 Oct 2012 21:44:02 +0000 (UTC) From: "Paritosh Ranjan (JIRA)" To: dev@mahout.apache.org Message-ID: <887404348.11100.1349732643059.JavaMail.jiratomcat@arcas> In-Reply-To: <2043278635.10744.1349729524916.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (MAHOUT-1091) Bug in SequentialAccessSparseVector full iteration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAHOUT-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paritosh Ranjan updated MAHOUT-1091: ------------------------------------ Attachment: MAHOUT-1091.patch Just tried out of curiosity. The patch contains the fix and a junit test demonstrating the fix. The math module's test cases pass after this fix. Have not checked the complete build yet. > Bug in SequentialAccessSparseVector full iteration > -------------------------------------------------- > > Key: MAHOUT-1091 > URL: https://issues.apache.org/jira/browse/MAHOUT-1091 > Project: Mahout > Issue Type: Bug > Components: Math > Reporter: Ted Dunning > Fix For: 0.8 > > Attachments: MAHOUT-1091.patch > > > The iterator for the SequentialAccessSparseVector doesn't return any items beyond the last non-zero. This breaks some stuff pretty massively, but hopefully doesn't break much user code since iterating through all elements of a sparse vector is a relatively rare thing to do. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira