Example #1
0
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
Example #2
0
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
Example #3
0
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
Example #4
0
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