This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Performance and the fly likes Solving linear equation systems including sparse matrices Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "Solving linear equation systems including sparse matrices" Watch "Solving linear equation systems including sparse matrices" New topic
Author

Solving linear equation systems including sparse matrices

Gregor Franz
Greenhorn

Joined: Nov 22, 2012
Posts: 1
Hi everyone,

Working on a Java project, I face the following problem:

I would like to solve a linear equation system of the form

A * x = b.

Therein, the matrix ‘A’ and both vectors ‘x’ and ‘b’ contain several thousand array elements. ‘A’, however, is a sparse matrix and only a small number of diagonals of ‘A’ may contain values that differ from zero.

The use of Java standard solvers results in very long computation times as these solvers normally do not use the specific properties of sparse matrices. Therefore I would like to ask if someone knows packages that include linear equation solvers which are able to solve systems as described above in a reasonable time.

I would be very grateful for any hint.

Thanks a lot in advance and best regards
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
The Apache Commons Math library can handle linear equation systems, but it's not optimized for sparse matrices, so it'll most likely not work with systems of this size.

The Colt library hasn't been updated in a long time, but it does claim to support sparse matrices, so may be worth checking out.


Android appsImageJ pluginsJava web charts
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4165
    
    3

Gregor, please BeForthrightWhenCrossPostingToOtherSites
http://www.javaprogrammingforums.com/java-theory-questions/19602-solving-linear-equation-systems-including-sparse-matrices.html
http://www.java-forums.org/advanced-java/65470-solving-linear-equation-systems-including-sparse-matrices.html


luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Solving linear equation systems including sparse matrices
 
Similar Threads
Array of Nulls
how to read in an n * n matrix and how to form it?
2 dimension array
How to take linear equation as input.
Newton Rapson library for APR calculator in JAVA