[ 
https://issues.apache.org/jira/browse/MAHOUT-531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Hans updated MAHOUT-531:
----------------------------------

    Status: Patch Available  (was: Open)

This patch enables MatrixWritable to write/read all types of currently 
implemented matrices except VectorList and MatrixView. Write/read of column/row 
labels is supported as well. In order to support sparse matrices, the following 
changes were made:

- add isDense() to Matrix interface and all implementations
- add getNumActuallySet() (returns the number of values actually stored in 
memory)
- add iterate() (iterates over the number of items from the previous point 
using Matrix.Element)

Included is a test as well. Since both VectorWritableTest and 
MatrixWritableTest can share code, a abstract class WritableTestCase was 
introduced.

MatrixWritable knows if the given Matrix is writable by first calling 
getNumActuallySet(). This fails with an UnsupportedOperationException for 
implementations that aren't writable.

> MatrixWritable doesn't actually write/read anything
> ---------------------------------------------------
>
>                 Key: MAHOUT-531
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-531
>             Project: Mahout
>          Issue Type: Bug
>          Components: Math
>            Reporter: Alexander Hans
>
> The write() and readFields() methods of MatrixWritable write/read only the 
> classname, they don't write/read actual data.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to