core-matrix

intended for specific discussion around core.matrix (usage and development) For general data work check out #data-science
Brian Chevalier 2020-11-29T03:58:44.008Z

I made a little website for my own reference on how to translate equivalent MATLAB and NumPy expressions into core.matrix and Clojure! https://brianchevalier.github.io/matrix-compare/ I want to add more languages and examples in the future (ie R, Julia), pull requests are welcome! See https://github.com/BrianChevalier/matrix-compare

💯 1
1
Schmoho 2020-11-29T16:25:16.017800Z

I'm having a problem with clatrix / jblas, and I figured maybe someone here could help me with it, although it's not strictly a core.matrix topic. The LU-Decomposition of clatrix calls into jblas.Decompose/lu which uses jblas.NativeBlas/dgetrf - and that throws UnsatisfiedLinkError. So I guess there must be something insufficient with my native blas libs, but I'm having the hardest time coming up with something useful via google. I'm using version 0.5.0 of clatrix and that seems to use 1.2.3 of jblas. Also I've got a libblas installed that apparently came with my system (Ubuntu 20.04) and installed libopenblas to no avail so far:

❯ sudo ldconfig -p | grep blas
	libopenblas.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libopenblas.so.0
	libopenblas.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libopenblas.so
	libblas.so.3 (libc6,x86-64) => /lib/x86_64-linux-gnu/libblas.so.3
	libblas.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libblas.so
and I've got liblapack installed:
❯ sudo ldconfig -p | grep lapack
	liblapack.so.3 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblapack.so.3
	liblapack.so (libc6,x86-64) => /lib/x86_64-linux-gnu/liblapack.so
So some questions here already: will libopenblas and libblas collide in this manner? How can I help jblas to find an implementation for dgetrf? Sorry about the nooby questions, rather new to the entire LA computing party