Currently on the JVM target, val a =zeros(3,3); a[1,1] will yield a boxed number because .get(...) has return type T, which forces Matrix<Double> to return java.lang.Double instead of double. This is inconvenient for performance reasons if calling get or set in a loop.
Currently on the JVM target,
val a =zeros(3,3); a[1,1]
will yield a boxed number because.get(...)
has return typeT
, which forcesMatrix<Double>
to returnjava.lang.Double
instead ofdouble
. This is inconvenient for performance reasons if calling get or set in a loop.