Re: Digest for numerical-clojure@googlegroups.com - 1 update in 1 topic

28 views
Skip to first unread message

Jeff Rose

unread,
Oct 10, 2016, 12:46:27 PM10/10/16
to numerica...@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.)



Jeff Rose
CEO / Founder


1050 Walnut st, suite 500
Boulder, Co, USA, 80302


On Sat, Oct 8, 2016 at 1:11 AM, <numerica...@googlegroups.com> wrote:
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.

Mars0i

unread,
Oct 11, 2016, 9:07:24 PM10/11/16
to Numerical Clojure
On Monday, October 10, 2016 at 11:46:27 AM UTC-5, Jeff Rose wrote:
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.)

Thanks Jeff.  I don't know much about numerical or matrix algorithms, but maybe at some point down the road I can at least try to add a non-horrible implementation of inverse. :-)
Reply all
Reply to author
Forward
0 new messages