input: an index (pos) and a value changes the specified component (pos) with the 'value'
(self,pos,value)
| 134 | """ |
| 135 | return Vector(self.__components) |
| 136 | def changeComponent(self,pos,value): |
| 137 | """ |
| 138 | input: an index (pos) and a value |
| 139 | changes the specified component (pos) with the |
| 140 | 'value' |
| 141 | """ |
| 142 | #precondition |
| 143 | assert (-len(self.__components) <= pos < len(self.__components)) |
| 144 | self.__components[pos] = value |
| 145 | |
| 146 | def zeroVector(dimension): |
| 147 | """ |
no outgoing calls