You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Chenliang Xu (JIRA)" <ji...@apache.org> on 2016/03/28 06:37:25 UTC

[jira] [Created] (SPARK-14187) Incorrect use of binarysearch in SparseMatrix

Chenliang Xu created SPARK-14187:
------------------------------------

             Summary: Incorrect use of binarysearch in SparseMatrix
                 Key: SPARK-14187
                 URL: https://issues.apache.org/jira/browse/SPARK-14187
             Project: Spark
          Issue Type: Bug
          Components: MLlib
    Affects Versions: 1.6.1
            Reporter: Chenliang Xu
            Priority: Minor


{{SparseMatrix}} use binarySearch to find {{index}}. 

{quote}
binarySearch returns index of the search key, if it is contained in the array within the specified range; otherwise, (-(insertion point) - 1).
{quote}

On the other hand, {{update}} method only compare the returned index with {{-1}} to decide whether it is found or not.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org