private final static int sygvd(int itype, String jobz, String uplo, DenseMatrix A, DenseMatrix B, DenseVector W) { int info = dsygvd(itype, jobz, uplo, A.numColumns(), A.getData(), A.numRows(), B.getData(), B.numRows(), W.getData()); if (info == 0) { return 0; } else { if (info < 0) throw new IllegalArgumentException("LAPACK ERROR: DSYGVD returned " + info); throw new RuntimeException("LAPACK ERROR: DSYGVD returned " + info); } }