Sebastian Schelter created MAHOUT-1580:
------------------------------------------
Summary: Optimize getNumNonZeroElements
Key: MAHOUT-1580
URL: https://issues.apache.org/jira/browse/MAHOUT-1580
Project: Mahout
Issue Type: Improvement
Components: Math
Reporter: Sebastian Schelter
Assignee: Sebastian Schelter
Fix For: 1.0
getNumNonZeroElements in AbstractVector uses the nonZeroes -iterator internally
which adds a lot of overhead for certain types of vectors, e.g. the dense ones.
We should add custom implementations here.
--
This message was sent by Atlassian JIRA
(v6.2#6252)