kyonifer / koma

A scientific computing library for Kotlin. https://kyonifer.github.io/koma
Other
270 stars 23 forks source link

Eliminate boxing from get/set methods #32

Closed kyonifer closed 7 years ago

kyonifer commented 7 years ago

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.

kyonifer commented 7 years ago

Closed by a4e1609a293a193dd3895db8e7fa3375f424ff12.