update multivector examples
This commit is contained in:
1 parent
5d212ad3cf
commit
b38a2f9c3a
5 files changed
+5
-5
No files matched your search
@@ -92,7 +92,7 @@ class MultiVector:
|
||||
typecode = 'd'
|
||||
|
||||
def __init__(self, components):
|
||||
self._components = array(MultiVector.typecode, components) # <1>
|
||||
self._components = array(self.typecode, components) # <1>
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self._components) # <2>
|
||||
|
||||
@@ -89,7 +89,7 @@ class MultiVector:
|
||||
typecode = 'd'
|
||||
|
||||
def __init__(self, components):
|
||||
self._components = array(MultiVector.typecode, components)
|
||||
self._components = array(self.typecode, components)
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self._components)
|
||||
|
||||
@@ -118,7 +118,7 @@ class MultiVector:
|
||||
typecode = 'd'
|
||||
|
||||
def __init__(self, components):
|
||||
self._components = array(MultiVector.typecode, components)
|
||||
self._components = array(self.typecode, components)
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self._components)
|
||||
|
||||
@@ -140,7 +140,7 @@ class MultiVector:
|
||||
typecode = 'd'
|
||||
|
||||
def __init__(self, components):
|
||||
self._components = array(MultiVector.typecode, components)
|
||||
self._components = array(self.typecode, components)
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self._components)
|
||||
|
||||
@@ -154,7 +154,7 @@ class MultiVector:
|
||||
typecode = 'd'
|
||||
|
||||
def __init__(self, components):
|
||||
self._components = array(MultiVector.typecode, components)
|
||||
self._components = array(self.typecode, components)
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self._components)
|
||||
|
||||
Reference in new issue
Block a user