kyonifer / koma

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

Linear indexing may be too magical. #91

Open kyonifer opened 5 years ago

kyonifer commented 5 years ago

First brought up in #83. Having a[55] magically be a row-major wrapped index for Matrices (which otherwise require a 2D indexer) may be too magical, in light of the same not being true for NDArray. We may consider instead being more explicit, e.g. a.linear[55] or similar.