code: public double det() {
          if (au == null) {
              decompose();
          }
          
          double dd = d;
          for (int i = 0; i < n; i++) {
              dd *= au[i][0];
          }
  
          return dd;
      }
docs: Returns the matrix determinant.