Fwd: Re: URGENT: Matrix division problem?
- Subject: Fwd: Re: URGENT: Matrix division problem?
- From: "Ronald F. Boisvert" <boisvert@nist.gov>
- Date: Sun, 01 Mar 2009 12:43:45 -0500
- Content-Disposition: inline
- Content-Transfer-Encoding: 8bit
- Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed"
- User-Agent: Internet Messaging Program (IMP) 4.3.3
Sender: Calvyn Kilowatt <calvyn.kilowatt@gmail.com>
Subject: Re: URGENT: Matrix division problem?
Hi
Given the urgency, there seems to be a simple solution to your problem.
1. Since the inputs to your calculation are random, it is reasonable
to assume that the output will also be random.
2. It is not clear to me from the description of your calculation what
the size of your result should be, but let us assume you have enough
insight into your problem to know that you are expecting a matrix of
size p-by-q.
So if you know p and q, then a solution to your problem is just:
Matrix.random(p,q).
For the purposes of your final project this answer may be preferable
to a RuntimeException and is certainly a lot easier and quicker than
to go and study the basics of the solution of linear equations.
- CK
2009/2/27 pohuty Lee <pohuty@gmail.com>:
> A and B are both r*m matrix Generate matrix by random function.
> Matrix A = Matrix.random(r,m);
> Matrix B = Matrix.random(r,m);
> I'm trying to work out the result of A.solve(B); Then, It gave me an
> exception:
>
> Exception in thread "main" java.lang.RuntimeException: Matrix is rank
> deficient.
> at Jama.QRDecomposition.solve(QRDecomposition.java:185)
> at Jama.Matrix.solve(Matrix.java:815)
>
> How could it be that? How can I get the right result? Thanks very
> much, I need use the result in my final project. This is URGENT!
>
> Regards
>
> --------------------------------------------------------------------------------
>
> pohuty
>
>
>
> ----- End forwarded message -----
>
>
>
----- End forwarded message -----
Date Index |
Thread Index |
Problems or questions? Contact list-master@nist.gov