Java library for matrix operations with complex numbers?

I want to rewrite some code processing code from C ++ to Java. I end up with matrices of complex numbers (numbers with imaginary components). I need to find the inverse complex matrix NxN, as well as my own proprietary principle.

There are several Java libraries for real numbers, but I could not find anything that supports complex numbers. I found one library, but it was private and had to be licensed.

Was it implemented anywhere?

I can always associate the required C code with the JNI, but I did this to avoid platform dependency.

+4
source share
5 answers

I would recommend Apache Commons Math . I believe that it continues, with which JAMA stopped.

+5
source

In a past university course, I worked with JAMA .

+3
source

There is java LAPACK, basically a FORTRAN automatic translation: http://www.netlib.org/java/f2j/ . Unfortunately, packaged sources do not include complex ones, but you can apply the same technique to these, I think. It could be a lot of effort, though, and I can't vouch for the performance to be satisfactory.

Also take a look at JavaNumerics at http://math.nist.gov/javanumerics/#libraries . They have a fairly complete list of things that can help you.

+1
source

I recommend Michael Thomas Flanagan Java Science Library: http://www.ee.ucl.ac.uk/~mflanaga/java/index.html

It was a lot easier for me to use than the others mentioned in this post so far.

+1
source

cern.colt is worth a try.

0
source

All Articles