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

    https://github.com/apache/spark/pull/13468#discussion_r65680455
  
    --- Diff: 
mllib-local/src/main/scala/org/apache/spark/ml/linalg/Vectors.scala ---
    @@ -537,6 +537,22 @@ class DenseVector @Since("2.0.0") ( @Since("2.0.0") 
val values: Array[Double]) e
           maxIdx
         }
       }
    +  
    +  /**
    + * Function that returns the result of multiply this DenseVector by 
another DenseVector.
    + *
    + * @param other The second DenseVector
    + * @return The resulting Double value
    + */
    +  def dot(other: DenseVector): Double = {
    +    require(this.size == other.size, "DenseVectors dimmensions must be the 
same." +
    --- End diff --
    
    Ah right, I keep forgetting that. See NIck's comment below though. It's not 
a crazy idea or anything but think it is mostly intentional to not expose much 
functionality from this API. It's just a wrapper.


---
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