Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (19 sloc) 597 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
# ================================================================
# Group module for the generalized quaternion group.
import genquat_tm
def get_elements_str(params_string):
n = genquat_tm.params_from_string(params_string)
fourn = n + n + n + n
elts = range(0, fourn)
k = 0
for i in range(0, n):
for j in range(0, 4):
elts[k] = genquat_tm.genquat_t(i, j, n)
k += 1
return elts
Something went wrong with that request. Please try again.