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

    https://github.com/apache/spark/pull/4109#discussion_r23566417
  
    --- Diff: mllib/src/main/scala/org/apache/spark/mllib/linalg/BLAS.scala ---
    @@ -487,35 +455,18 @@ private[spark] object BLAS extends Serializable with 
Logging {
     
       /**
        * y := alpha * A * x + beta * y
    -   *
    -   * @param alpha a scalar to scale the multiplication A * x.
    -   * @param A the matrix A that will be left multiplied to x. Size of m x 
n.
    -   * @param x the vector x that will be left multiplied by A. Size of n x 
1.
    -   * @param beta a scalar that can be used to scale vector y.
    -   * @param y the resulting vector y. Size of m x 1.
    -   */
    -  def gemv(
    -      alpha: Double,
    -      A: Matrix,
    -      x: DenseVector,
    -      beta: Double,
    -      y: DenseVector): Unit = {
    -    gemv(false, alpha, A, x, beta, y)
    -  }
    -
    -  /**
    -   * y := alpha * A * x + beta * y
        * For `DenseMatrix` A.
        */
       private def gemv(
    -      trans: Boolean,
           alpha: Double,
           A: DenseMatrix,
           x: DenseVector,
           beta: Double,
           y: DenseVector): Unit =  {
    -    val tStrA = if (!trans) "N" else "T"
    -    nativeBLAS.dgemv(tStrA, A.numRows, A.numCols, alpha, A.values, 
A.numRows, x.values, 1, beta,
    +    val tStrA = if (!A.isTransposed) "N" else "T"
    --- End diff --
    
    ditto


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to