changes the x-y component of this matrix
(self, x, y, value)
| 295 | return ans |
| 296 | |
| 297 | def changeComponent(self, x, y, value): |
| 298 | """ |
| 299 | changes the x-y component of this matrix |
| 300 | """ |
| 301 | if x >= 0 and x < self.__height and y >= 0 and y < self.__width: |
| 302 | self.__matrix[x][y] = value |
| 303 | else: |
| 304 | raise Exception("changeComponent: indices out of bounds") |
| 305 | |
| 306 | def component(self, x, y): |
| 307 | """ |
no outgoing calls