[
https://issues.apache.org/jira/browse/MAHOUT-756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lance Norskog updated MAHOUT-756:
---------------------------------
Attachment: VectorList.patch
VectorList.java:
* Fixed maintenance of cardinality values. Removed local copy of # of columns.
* Pre-allocate rows when given # of rows in constructor.
* Work around "like" problems: the class allows different vectors to be
different classes, and so making a 'like' Matrix with more rows is impossible.
* When accessing an empty row, change NullPointerException to
IllegalStateException.
VectorListTest.java:
Added a bunch of tests for dynamic row additions.
> VectorList (Matrix implementation) does 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