- no inverse in aljabr - 1 Update
Mars0i <mars...@logical.net>: Oct 07 10:16PM -0700
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 <https://github.com/mars0i/free>; 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.)
You have received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to numerical-clojure+unsubscribe@googlegroups.com.
You are correct. Unless there is a default implementation that's cross platform, we haven't written inverse specifically for cljs. Pull requests are always excepted! (There is a lot of low hanging fruit to speedup aljabr in general if you really start using it for numerical work.)