hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HAMA-889) NonDefaultIterator of DenseDoubleVector never reaches the end
Date Mon, 10 Mar 2014 00:07:43 GMT

    [ https://issues.apache.org/jira/browse/HAMA-889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13925364#comment-13925364
] 

Hudson commented on HAMA-889:
-----------------------------

SUCCESS: Integrated in Hama-Nightly-for-Hadoop-1.x #1205 (See [https://builds.apache.org/job/Hama-Nightly-for-Hadoop-1.x/1205/])
HAMA-889: NonDefaultIterator of DenseDoubleVector never reaches the end (yxjiang: rev 1575712)
* /hama/trunk/CHANGES.txt
* /hama/trunk/commons/src/main/java/org/apache/hama/commons/math/DenseDoubleVector.java
* /hama/trunk/commons/src/main/java/org/apache/hama/commons/math/DoubleVector.java
* /hama/trunk/commons/src/main/java/org/apache/hama/commons/math/NamedDoubleVector.java
* /hama/trunk/commons/src/test/java/org/apache/hama/commons/math/TestDenseDoubleVector.java


> 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