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

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

SUCCESS: Integrated in Hama-Nightly-for-Hadoop-2.x #201 (See 
[https://builds.apache.org/job/Hama-Nightly-for-Hadoop-2.x/201/])
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)

Reply via email to