Skip to content

Commit b38a2f9

Browse files
committed
update multivector examples
1 parent 5d212ad commit b38a2f9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

classes/multivector_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class MultiVector:
9292
typecode = 'd'
9393

9494
def __init__(self, components):
95-
self._components = array(MultiVector.typecode, components) # <1>
95+
self._components = array(self.typecode, components) # <1>
9696

9797
def __iter__(self):
9898
return iter(self._components) # <2>

classes/multivector_v1_hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class MultiVector:
8989
typecode = 'd'
9090

9191
def __init__(self, components):
92-
self._components = array(MultiVector.typecode, components)
92+
self._components = array(self.typecode, components)
9393

9494
def __iter__(self):
9595
return iter(self._components)

classes/multivector_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class MultiVector:
118118
typecode = 'd'
119119

120120
def __init__(self, components):
121-
self._components = array(MultiVector.typecode, components)
121+
self._components = array(self.typecode, components)
122122

123123
def __iter__(self):
124124
return iter(self._components)

classes/multivector_v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class MultiVector:
140140
typecode = 'd'
141141

142142
def __init__(self, components):
143-
self._components = array(MultiVector.typecode, components)
143+
self._components = array(self.typecode, components)
144144

145145
def __iter__(self):
146146
return iter(self._components)

classes/multivector_v4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class MultiVector:
154154
typecode = 'd'
155155

156156
def __init__(self, components):
157-
self._components = array(MultiVector.typecode, components)
157+
self._components = array(self.typecode, components)
158158

159159
def __iter__(self):
160160
return iter(self._components)

0 commit comments

Comments
 (0)