Re: Jama: use of matrix elements?
Pekka Laitinen wrote:
[snip]
> That was the inverse. Now I wonder how to use certain element of
> invMat matrix. Normally I would do it like here below:
> ///////////////////////////////////////////////////////////////////
>
> public void paint(Graphics g) {
> g.drawString(M[2][3]), 20, 15);
> }
Hmmm, shouldn't we use getArray()? For example,
public void paint(Graphics g) {
g.drawString( (invMat.getArray())[2][3], 20, 15 );
}
--
Cheers, Hankel
http://www.acad.polyu.edu.hk/~master
Date Index |
Thread Index |
Problems or questions? Contact list-master@nist.gov