docs: public static boolean invert( DMatrixRMaj mat) {
          if( mat.numCols <= UnrolledInverseFromMinor_DDRM.MAX ) {
              if( mat.numCols != mat.numRows ) {
                  throw new MatrixDimensionException("Must be a square matrix.");
              }
  
              if( mat.numCols >= 2 ) {
                  UnrolledInverseFromMinor_DDRM.inv(mat,mat);
              } else {
                  mat.set(0, 1.0/mat.get(0));
              }
          } else {
              LUDecompositionAlt_DDRM alg = new LUDecompositionAlt_DDRM();
              LinearSolverLu_DDRM solver = new LinearSolverLu_DDRM(alg);
              if( solver.setA(mat) ) {
                  solver.invert(mat);
              } else {
                  return false;
              }
          }
          return true;
      }