MCPcopy Index your code
hub / github.com/geekcomputers/Python / component

Method component

linear-algebra-python/src/lib.py:306–313  ·  view source on GitHub ↗

returns the specified (x,y) component

(self, x, y)

Source from the content-addressed store, hash-verified

304 raise Exception("changeComponent: indices out of bounds")
305
306 def component(self, x, y):
307 """
308 returns the specified (x,y) component
309 """
310 if x >= 0 and x < self.__height and y >= 0 and y < self.__width:
311 return self.__matrix[x][y]
312 else:
313 raise Exception("changeComponent: indices out of bounds")
314
315 def width(self):
316 """

Callers 1

test_component_matrixMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_component_matrixMethod · 0.76