copies this vector and returns it.
(self)
| 129 | else: # error case |
| 130 | raise Exception("invalide operand!") |
| 131 | def copy(self): |
| 132 | """ |
| 133 | copies this vector and returns it. |
| 134 | """ |
| 135 | return Vector(self.__components) |
| 136 | def changeComponent(self,pos,value): |
| 137 | """ |
| 138 | input: an index (pos) and a value |