LAPACK lapack = LAPACK.getInstance();
intW info = new intW(0);
double[] result = B.toDoubleArray();
lapack.dgesv(n, p, avals, n, ipiv, result, n, info);
if (info.val < 0) {
throw new EvalException("argument -" + info.val + " of Lapack routine 'dgsv' had invalid value");
}
if (info.val > 0) {