hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yexi Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HAMA-889) NonDefaultIterator of DenseDoubleVector never reaches the end
Date Sun, 09 Mar 2014 14:55:48 GMT

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

Yexi Jiang updated HAMA-889:
----------------------------

    Summary: NonDefaultIterator of DenseDoubleVector never reaches the end  (was: NonZeroIterator
of DenseDoubleVector never reaches the end)

> 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)

Mime
View raw message