/** * Computes eigenvalues and eigenvectors for a symmetric 3x3 matrix A. * If the eigenvectors are placed in columns in a matrix V, and the * eigenvalues are placed in corresponding columns of a diagonal * matrix D, then AV = VD. * @param a the symmetric matrix A. * @param v the array of eigenvectors v[0], v[1], and v[2]. * @param d the array of eigenvalues d[0], d[1], and d[2]. */ public static void solveSymmetric33(double[][] a, double[][] v, double[] d) { solveSymmetric33Jacobi(a,v,d); // slow but more accurate }