ndarray
ndarray copied to clipboard
core.matrix integration?
This looks like a cool library!
Any possibility to refactoring this to integrate with core.matrix? There's been some interest in a core.matrix for ClojureScript but the lack of a decent ndarray implementation has held it back.
As an extra upside thi.ng/ndarray
would gain compatibility with the rest of the core.matrix ecosystem on the Clojure side. I'm thinking use with Incanter for visualisation etc.
I think the main work is: a) Port the core.matrix API and protocols to cljs / cljc b) Implement the core.matrix protocols for the thi.ng/ndarray classes
Thoughts?
Hi Mike, I don't know about core.matrix enough to make this happen myself (and no current capacity to do so either), but if you want to take a stab, you're welcome to try it as long as it doesn't completely change the essence of how to use this lib.
It wouldn't change your current API at all. People could use the core.matrix API but it would be an alternative, not a replacement.
It would add a core.matrix dependency (not particularly heavyweight)
If you are happy with that then I (or someone else on the team...) will take a look at a PR.
Go for it then! :) Btw. this lib is already used as dependency for some of the visualization methods in thi.ng/geom (currently for heatmap & isolines, but soon more...)