Solved

Inverse of a 2d array in java

Posted on 2008-11-03
3
424 Views
Last Modified: 2012-05-05
Hi,

I need to be able to produce the inverse of a 2d array in java. Similarly to the excel function 'MInverse' (Application.WorksheetFunction.MInverse(z)) where z is double[][] z = new double[x][x];

please help.
0
Comment
Question by:billyleo
  • 2
3 Comments
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 22867600
Check out this API:
http://math.nist.gov/javanumerics/jama/

Used for Matrix based math.  Includes a function for Matrix Inverse (MInverse ;)).
0
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 22867624
This from UNLV is supposed to be along the same lines, so you may be able to learn from this approach:
http://www.physics.unlv.edu/~pang/comp4/Inverse.java
0
 

Author Closing Comment

by:billyleo
ID: 31512697
cheers - had just found the second link but i like the look of jama more

thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question