示例#1
0
文件: snc_gm.py 项目: devonjones/sack
def get_elements(n, sort_them=True):
	group_size = sackint.factorial(n)
	elts = []
	for k in range(0, group_size):
		elt = pmtc_tm.kth_pmtc(k, n, group_size)
		elts.append(elt)
	if sort_them:
		pmtc_tm.sort_pmtcs(elts)
	return elts
示例#2
0
def get_elements(n, sort_them=True):
    group_size = sackint.factorial(n)
    elts = []
    for k in range(0, group_size):
        elt = pmtc_tm.kth_pmtc(k, n, group_size)
        elts.append(elt)
    if sort_them:
        pmtc_tm.sort_pmtcs(elts)
    return elts
示例#3
0
文件: anc_gm.py 项目: devonjones/sack
def get_elements(n):
	sn_size = sackint.factorial(n)
	elts = []
	for k in range(0, sn_size):
		elt = pmtc_tm.kth_pmtc(k, n, sn_size)
		if (elt.parity() == 0):
			elts.append(elt)
	pmtc_tm.sort_pmtcs(elts)
	return elts
示例#4
0
文件: anc_gm.py 项目: devonjones/sack
def get_elements(n):
    sn_size = sackint.factorial(n)
    elts = []
    for k in range(0, sn_size):
        elt = pmtc_tm.kth_pmtc(k, n, sn_size)
        if (elt.parity() == 0):
            elts.append(elt)
    pmtc_tm.sort_pmtcs(elts)
    return elts