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 305FF412B for ; Mon, 11 Jul 2011 11:30:28 +0000 (UTC) Received: (qmail 10069 invoked by uid 500); 11 Jul 2011 11:30:27 -0000 Delivered-To: apmail-mahout-dev-archive@mahout.apache.org Received: (qmail 9535 invoked by uid 500); 11 Jul 2011 11:30:23 -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 9511 invoked by uid 99); 11 Jul 2011 11:30:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2011 11:30:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2011 11:30:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E0699452F0 for ; Mon, 11 Jul 2011 11:29:59 +0000 (UTC) Date: Mon, 11 Jul 2011 11:29:59 +0000 (UTC) From: "Sean Owen (JIRA)" To: dev@mahout.apache.org Message-ID: <1137394908.2694.1310383799915.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <80231801.1664.1310336339847.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAHOUT-756) VectorList (Matrix implementation) does not maintain cardinality getters correctly 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-756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063291#comment-13063291 ] Sean Owen commented on MAHOUT-756: ---------------------------------- OK, I see: like(int, int) used a DenseVector all the time since it wanted to specify the cardinality concretely. I think it's OK to leave that as-is, as it's not obviously a problem, rather than change its behavior. It's not necessary to make the like() method always use DenseVector though? There it's fine to call Vector.like(). The two methods were not consistent in this regard -- you flipped them both to do what the other did. :) Consistency might be good here... I don't know. Always use DenseVector, or use like() in the one case where you can? > VectorList (Matrix implementation) does not maintain cardinality getters correctly > ---------------------------------------------------------------------------------- > > Key: MAHOUT-756 > URL: https://issues.apache.org/jira/browse/MAHOUT-756 > Project: Mahout > Issue Type: Bug > Components: Math > Reporter: Lance Norskog > Priority: Minor > Attachments: VectorList.patch > > > VectorList (implements Matrix) is dynamically expandable, row-wise. There are three different ways to query the size of a Matrix, and VectorList does not correctly supply these values. > -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira