This should use dynamic code generation so that it can be made to work with generic ndarrays without resorting to writing everything twice or using getters/setters always.
E.g.:
https://github.com/scijs/ndarray-matrix-vector-multiply/blob/master/mvp.js
https://github.com/scijs/splines/blob/master/splines.js
I wish there were a more readable way to write or template this dynamically generated code. Any thoughts/reflections, @mikolalysenko? @jaspervdg?
This should use dynamic code generation so that it can be made to work with generic ndarrays without resorting to writing everything twice or using getters/setters always.
E.g.:
https://github.com/scijs/ndarray-matrix-vector-multiply/blob/master/mvp.js
https://github.com/scijs/splines/blob/master/splines.js
I wish there were a more readable way to write or template this dynamically generated code. Any thoughts/reflections, @mikolalysenko? @jaspervdg?