update multivector examples
This commit is contained in:
@@ -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