code: public static DenseCholesky factorize(Matrix A) {
          return new DenseCholesky(A.numRows(), true)
                  .factor(new UpperSPDDenseMatrix(A));
      }
docs: Calculates a Cholesky decomposition
  
  @param A
  Matrix to decompose. Not modified
  @return The current decomposition