Skip to content

Commit

Permalink
Hmmm
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed Nov 14, 2023
1 parent c75f197 commit 18da4ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/js/src/main/scala/vecxt/array.extensions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ package object vecxt:

end extension

extension (vec: js.Array[Float64Array])
extension (vec: Array[Float64Array])
inline def horizontalSum: Float64Array =
val out = new Float64Array(vec.head.length)
var i = 0
Expand Down
2 changes: 1 addition & 1 deletion tests/shared/src/test/scala/arrayExtensions.test.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ArrayExtensionSuite extends munit.FunSuite:
val v2 = v1 * 2.0
val v3 = v1 * 3.0

val l = NArray(v1, v2, v3)
val l = Array(v1, v2, v3)
val summed = l.horizontalSum

assert(summed(0) == 1 + 2 + 3)
Expand Down

0 comments on commit 18da4ef

Please sign in to comment.