Skip to content

Commit

Permalink
use Array on scalaJS
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas authored Mar 5, 2024
1 parent 72a2b51 commit b1b55c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vecxt/js/src/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ object extensions:
def maxElement: Double = vec.max
//val t = js.Math.max( vec.toArray: _* )

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

0 comments on commit b1b55c0

Please sign in to comment.