Github user dbtsai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6209#discussion_r30483433
  
    --- Diff: 
mllib/src/test/scala/org/apache/spark/mllib/linalg/BLASSuite.scala ---
    @@ -257,32 +257,60 @@ class BLASSuite extends FunSuite {
           new DenseMatrix(4, 3, Array(0.0, 1.0, 0.0, 0.0, 2.0, 0.0, 1.0, 0.0, 
0.0, 0.0, 0.0, 3.0))
         val sA = new SparseMatrix(4, 3, Array(0, 1, 3, 4), Array(1, 0, 2, 3), 
Array(1.0, 2.0, 1.0, 3.0))
     
    -    val x = new DenseVector(Array(1.0, 2.0, 3.0))
    +    val dx = new DenseVector(Array(1.0, 2.0, 3.0))
    +    val sx = dx.toSparse
         val expected = new DenseVector(Array(4.0, 1.0, 2.0, 9.0))
     
    -    assert(dA.multiply(x) ~== expected absTol 1e-15)
    -    assert(sA.multiply(x) ~== expected absTol 1e-15)
    +    assert(dA.multiply(dx) ~== expected absTol 1e-15)
    +    assert(sA.multiply(dx) ~== expected absTol 1e-15)
     
    --- End diff --
    
    @viirya Adding `MimaExcludes` should be fine since you are making it more 
generalized.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to