Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java library for matrix operations involving complex numbers? [closed]

I want to rewrite some signal processing code of mine from C++ to Java. I wind up with matrices of complex numbers (numbers with imaginary components). I need to find the inverse of an NxN complex matrix, as well as the principle eigenvector.

There are several Java libraries to do this with real numbers, but I couldn't find anything that supported complex numbers. I found one library but it was proprietary and had to be licensed.

Has this been implemented anywhere?

I can always wrap the needed C code with JNI, but I was doing this to avoid platform dependence.

like image 629
MattRS Avatar asked Dec 29 '22 05:12

MattRS


2 Answers

I'd recommend Apache Commons Math. I believe that it carries on from where JAMA left off.

like image 116
duffymo Avatar answered Feb 08 '23 23:02

duffymo


In a past university course, I worked with JAMA.

like image 44
Pascal Dimassimo Avatar answered Feb 09 '23 00:02

Pascal Dimassimo