We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58f5a1c commit 24de1aeCopy full SHA for 24de1ae
src/main/scala/Vectors.scala
@@ -10,6 +10,7 @@ object Vectors {
10
/** Compute the dot product of the vectors (represented as arrays)
11
* Returns (v1(0) * v2(0)) + (v1(1) * v2(1)) + ... + (v1(v1.length - 1) * v2(v2.length - 1))
12
* Or throws an exception if v1.length != v2.length
13
+ * Both arrays are assumed to be immutable.
14
*/
15
inline def dot(v1: => Array[Int], v2: => Array[Int]): Int = ~dotImpl('(v1), '(v2))(Tasty.macroContext)
16
0 commit comments