def get_elements(n, sort_them=True): group_size = sackint.factorial(n) elts = [] for k in range(0, group_size): elt = pmti_tm.kth_pmti(k, n, group_size) elts.append(elt) if sort_them: pmti_tm.sort_pmtis(elts) return elts
def get_elements(n): sn_size = sackint.factorial(n) elts = [] for k in range(0, sn_size): elt = pmti_tm.kth_pmti(k, n, sn_size) if (elt.parity() == 0): elts.append(elt) pmti_tm.sort_pmtis(elts) return elts