Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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) ...