Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/13468#discussion_r65566924
--- 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 --
Typo in dimmensions, and the indentation is off below. I don't think we
should add this since it's just a call to an existing method.
---
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]