Eliminate boxing from get/set methods
Closed this issue · 1 comments
kyonifer commented
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.