Java matrix libraries

Bober02 picture Bober02 · May 30, 2012 · Viewed 46.6k times · Source

I was wondering whether any of the well-known matrix libraries for Java, such as Colt or EJML, actually provide similar functionality as MatLab? For instance, I can't seem to find anywhere in the definition of their API simple method to add or subtract two matrices/vectors by each other, which seems to be the most common operation used. Am I missing something?

Answer

Christian Fries picture Christian Fries · May 5, 2013

Some Java libraries for linear algebra are:

EDIT maybe we can extend this list whenever one comes across and you know - the world keeps moving:

Note: Personally: I use Apache Commons Math and Colt in my own project (http://www.finmath.net). While commons math is actively developed, I found that Colt is still faster in some tasks (like Eigenvalue decomposition). For that reason I use some kind of wrapper which allows me to quickly switch the underlying library (I only need a few things like solving systems of equations and Eigenvalue decomposition).