Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use Vector dot method for Vectors.dot
  • Loading branch information
phpisciuneri committed Sep 18, 2019
commit 475922dfd0f9da03a33dd262b32ea5a471ee1803
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ object Vectors {
* If `size` does not match an [[IllegalArgumentException]] is thrown.
*/
@Since("3.0.0")
def dot(v1: Vector, v2: Vector): Double = BLAS.dot(v1, v2)
def dot(v1: Vector, v2: Vector): Double = v1.dot(v2)

/**
* Creates a vector of all zeros.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ object Vectors {
* If `size` does not match an [[IllegalArgumentException]] is thrown.
*/
@Since("3.0.0")
def dot(v1: Vector, v2: Vector): Double = BLAS.dot(v1, v2)
def dot(v1: Vector, v2: Vector): Double = v1.dot(v2)

/**
* Creates a vector of all zeros.
Expand Down