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

Method __neg__

matrix/matrix_class.py:295–296  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

293 return not self == other
294
295 def __neg__(self) -> Matrix:
296 return self * -1
297
298 def __add__(self, other: Matrix) -> Matrix:
299 if self.order != other.order:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected