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

Method __eq__

matrix/matrix_class.py:287–290  ·  view source on GitHub ↗
(self, other: object)

Source from the content-addressed store, hash-verified

285
286 # MATRIX OPERATIONS
287 def __eq__(self, other: object) -> bool:
288 if not isinstance(other, Matrix):
289 return NotImplemented
290 return self.rows == other.rows
291
292 def __ne__(self, other: object) -> bool:
293 return not self == other

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected