Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Solving linear equation systems including sparse matrices

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Thanked 0 Times in 0 Posts

    Default Solving linear equation systems including sparse matrices

    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

  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 827 Times in 770 Posts
    Blog Entries

    Default Re: Solving linear equation systems including sparse matrices

    Have you looked at Apache Math? It has classes and solvers for linear systems.
    Commons Math: The Apache Commons Mathematics Library
    The Commons Math User Guide - Linear Algebra

    --- Update ---

    This thread has been cross posted here:


    Although cross posting is allowed, for everyone's benefit, please read:

    Java Programming Forums Cross Posting Rules

    The Problems With Cross Posting

Similar Threads

  1. Java program to do Matrix operation
    By saladfingers73 in forum Collections and Generics
    Replies: 5
    Last Post: March 7th, 2012, 08:17 AM
  2. Program won't work on all operation systems
    By 123099 in forum AWT / Java Swing
    Replies: 8
    Last Post: July 18th, 2011, 05:11 PM
  3. Linear Equation Help !!!
    By thangavel in forum Algorithms & Recursion
    Replies: 1
    Last Post: January 13th, 2011, 05:32 AM
  4. Run 2 systems command in applet, how?
    By bulgin in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 8th, 2010, 03:11 PM
  5. Code wise working of Computer Algebra Systems
    By helloworld922 in forum Java Theory & Questions
    Replies: 1
    Last Post: July 7th, 2009, 07:45 AM

Tags for this Thread