changes the x-y component of this matrix
(self,x,y, value)
| 228 | ans += str(self.__matrix[i][j]) + "|\n" |
| 229 | return ans |
| 230 | def changeComponent(self,x,y, value): |
| 231 | """ |
| 232 | changes the x-y component of this matrix |
| 233 | """ |
| 234 | if x >= 0 and x < self.__height and y >= 0 and y < self.__width: |
| 235 | self.__matrix[x][y] = value |
| 236 | else: |
| 237 | raise Exception ("changeComponent: indices out of bounds") |
| 238 | def component(self,x,y): |
| 239 | """ |
| 240 | returns the specified (x,y) component |
no outgoing calls