}
anorm = lapack.dlange("1", n, n, A.toDoubleArray(), n, null);
double[] arrWork = new double[4 * n];
lapack.dgecon("1", n, avals, n, anorm, rcond, arrWork, ipiv, info);
if (rcond.val < tolerance) {
throw new EvalException("system is computationally singular: reciprocal condition number = " + rcond.val);
}
return DoubleArrayVector.unsafe(result, B.getAttributes());