Search:

Type: Posts; User: helloworld922

Search: Search took 0.12 seconds.

  1. Replies
    25
    Views
    4,958

    Re: java help with inversing matrices

    You shouldn't get a runtime exception if you've followed norm's suggestion, it should be a compile-time exception.

    Take a look at this part of your code:


    for (j = 0; j < n; j++)
    {
    ...
  2. Replies
    25
    Views
    4,958

    Re: java help with inversing matrices

    Please use tab-formatting on your code. Even with syntax highlighting it's extremely difficult to read code which is all left-aligned. Your problem should become apparent once you properly format...
  3. Replies
    25
    Views
    4,958

    Re: java help with inversing matrices

    Yes, that's one way to do it. At the end your original identity matrix will be the inverted matrix and the original matrix will be the identity matrix. All you need to do at the end is copy the...
  4. Replies
    25
    Views
    4,958

    Re: java help with inversing matrices

    Wikipedia is your friend

    There are many different ways to do it, the simplest to implement is probably Gauss-Jordan Elimination.
Results 1 to 4 of 4