Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (18 sloc) 0.578 kb
#!/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 cl2_tm
def get_elements_str(params_string):
[n, sqsign] = cl2_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(cl2_tm.cl2_t(sign, bits, n, sqsign))
return elts
Jump to Line
Something went wrong with that request. Please try again.