Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (18 sloc) 564 Bytes
#!/usr/bin/python -Wall
# ================================================================
# Please see LICENSE.txt in the same directory as this file.
# John Kerl
# kerl.john.r@gmail.com
# 2007-05-31
# ================================================================
import cl2m_tm
def get_elements_str(params_string):
n = cl2m_tm.params_from_string(params_string)
two_n = 1 << n
elts = []
#for bits in range(0, two_n):
#for sign in [1, -1]:
for sign in [1, -1]:
for bits in range(0, two_n):
elts.append(cl2m_tm.cl2m_t(sign, bits, n))
return elts