/** * {@inheritDoc} */ @Override public CholeskyDecompositionResult apply(DoubleMatrix x) { ArgChecker.notNull(x, "x"); RealMatrix temp = CommonsMathWrapper.wrap(x); CholeskyDecomposition cholesky; try { cholesky = new CholeskyDecomposition(temp); } catch (Exception e) { throw new MathException(e.toString()); } return new CholeskyDecompositionCommonsResult(cholesky); }