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

Edward J. Yoon updated HAMA-889:
--------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Fixed.

> NonDefaultIterator 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
>              Labels: math
>             Fix For: 0.7.0
>
>         Attachments: HAMA-889.patch
>
>
> 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)

Reply via email to