update multivector examples

This commit is contained in:
Luciano Ramalho 2014-10-16 00:50:08 -03:00
parent 5d212ad3cf
commit b38a2f9c3a
5 changed files with 5 additions and 5 deletions

View File

@ -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>

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)