Using ClonableIntArray [closed]
I want to use ClonableIntArray for use with permutation groups. To do so, I created a thin wrapper class:
class IntArray(ClonableIntArray):
def check(self):
return
class IntArrays(UniqueRepresentation, Parent):
def __init__(self):
Parent.__init__(self, category = Sets())
def _element_constructor_(self, *args, **keywords):
Element = IntArray
Later, I define a (standard Python) list of ints vertex_vector and attempt to turn it into an IntArray via
ia = IntArrays()(vertex_vector)
. Printing them both out, I get [1,0,0,0] for vertex_vector, and None for ia. What am I doing wrong?
Closed for the following reason
the question is answered, right answer was accepted by
Max Alekseyev
close date 2024-12-23 21:08:32.889025
add a comment