MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

linear_algebra/src/lib.py:265–271  ·  view source on GitHub ↗

simple constructor for initializing the matrix with components.

(self, matrix: list[list[float]], w: int, h: int)

Source from the content-addressed store, hash-verified

263 """
264
265 def __init__(self, matrix: list[list[float]], w: int, h: int) -> None:
266 """
267 simple constructor for initializing the matrix with components.
268 """
269 self.__matrix = matrix
270 self.__width = w
271 self.__height = h
272
273 def __str__(self) -> str:
274 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected