Hello There

 I am trying to use the SVD method of Java3D and I get a strange
arrayoutofbound
exception thrown at me!
My code is trivial as follows:

--------------
 double []v = new double[4];
  v[0]=1.0; v[1]=0.0;
  v[2]=0.0; v[3]=1.0;

  GMatrix Sigma = new GMatrix (2,2,v);
  GMatrix U = new GMatrix(2,2);
  GMatrix W = new GMatrix(2,2);
  GMatrix V = new GMatrix(2,2);

  System.out.println ("before SVD");
  Sigma.SVD (U,W,V);
  System.out.println ("after SVD");
--------------


Exception thrown follows

---
Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException
        at javax.vecmath.GMatrix.compute_qr(GMatrix.java
        at javax.vecmath.GMatrix.computeSVD(GMatrix.java
        at javax.vecmath.GMatrix.SVD(GMatrix.java:1528)

---


Can anyone help me please?


thanks

Paolo


--
Dr Paolo Remagnino
School of Computing and Information Systems
Kingston University
Penrhyn road
Kingston upon Thames
Surrey, KT1 2EE
tel: +44 (0)20 8547 7930
fax: +44 (0)20 8547 7824

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to