You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Dmitriy Lyubimov (JIRA)" <ji...@apache.org> on 2015/06/03 01:47:49 UTC
[jira] [Created] (MAHOUT-1729) Straighen out behavior of
Matrix.iterator() and iterateNonEmpty()
Dmitriy Lyubimov created MAHOUT-1729:
----------------------------------------
Summary: Straighen out behavior of Matrix.iterator() and iterateNonEmpty()
Key: MAHOUT-1729
URL: https://issues.apache.org/jira/browse/MAHOUT-1729
Project: Mahout
Issue Type: Bug
Reporter: Dmitriy Lyubimov
Assignee: Dmitriy Lyubimov
Fix For: 0.10.2
SparseMatrix in particular does iterateNonEmpty() instead of iterating over all rows in default iterator. This creates contract inconsistency leading to computational errors.
so... this fixes to guarantee that
for (row <- mxA)
visits ALL rows in the mxA (even if they are totally empty).
If it is ok not to process completely 0ed rows, then the following form should be used:
for (row <- mxA.iterateNonEmpty) ...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)