After experimenting a bit and checking various sources, it looks like aljabr lacks an inverse function, because the underlying Javascript ndarray implementation doesn't have it. core.matrix provides a default implementation of inverse by using vectorz's inverse, so this won't work in inverse in Clojurescript. No complaints, and maybe I will investigate adding inverse to aljabr at some point (not now). I just wanted to check that I wasn't missing something obvious. If anything I wrote sounds wrong, please let me know.
(Not important--feel free to stop reading, of course--but in case anyone's interested: In an earlier post I mentioned that I wanted to have two versions of an
application; one version would use raw Clojure arithmetic operators for speed with scalars only, and the other would use core.matrix for matrices instead of scalars. The raw speed difference between scalars and matrices seemed worth having two versions that shared code. Recently I got to the point where I could do real tests of the full application, and the scalar version is only 25% faster! (You're not surprised??) For a mere 25% slowdown, I could have just written one version, using core.matrix. But I'm glad that I have the scalar version: I need inverse, so now I can at least run the application with scalars in Clojurescript, which will be fine for my immediate needs.)