You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Yexi Jiang (JIRA)" <ji...@apache.org> on 2014/03/09 05:12:42 UTC
[jira] [Created] (HAMA-889) NonZeroIterator of DenseDoubleVector
never reaches the end
Yexi Jiang created HAMA-889:
-------------------------------
Summary: NonZeroIterator of DenseDoubleVector never reaches the end
Key: HAMA-889
URL: https://issues.apache.org/jira/browse/HAMA-889
Project: Hama
Issue Type: Bug
Components: math
Affects Versions: 0.7.0
Reporter: Yexi Jiang
Assignee: Yexi Jiang
Fix For: 0.7.0
NonZeroIterator of DenseDoubleVector never reaches the end.
This bug can be check by the following snippet of code.
{code:title=TestDenseDoubleVector.java|borderStyle=solid}
@Test(timeout=100)
public void testIterator() {
double[] expectedRes = new double[] {38, 44, 50, 56, 0, 0, 3, 0, 0, 0};
DoubleVector vec = new DenseDoubleVector(expectedRes);
Iterator<DoubleVectorElement> itrNonZero = vec.iterateNonZero();
while (itrNonZero.hasNext()) {
itrNonZero.next();
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)