kyonifer / koma

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

Array reshape #55

Closed drmoose closed 5 years ago

drmoose commented 5 years ago

This PR introduces an array-reshaping function, loosely inspired by the one from numpy. reshape comes in two flavors:

Reshape uses the same row-major ordering as getLinear, and uses the code-generation gradle scripts to avoid boxing and reflection.

This PR also fixes a type inference bug I introduced in a previous PR, which stood in the way.