Skip to content

Commit 24de1ae

Browse files
Update Vectors.scala
1 parent 58f5a1c commit 24de1ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/scala/Vectors.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ object Vectors {
1010
/** Compute the dot product of the vectors (represented as arrays)
1111
* Returns (v1(0) * v2(0)) + (v1(1) * v2(1)) + ... + (v1(v1.length - 1) * v2(v2.length - 1))
1212
* Or throws an exception if v1.length != v2.length
13+
* Both arrays are assumed to be immutable.
1314
*/
1415
inline def dot(v1: => Array[Int], v2: => Array[Int]): Int = ~dotImpl('(v1), '(v2))(Tasty.macroContext)
1516

0 commit comments

Comments
 (0)