MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / __sub__

Method __sub__

src/__init__.py:8750–8757  ·  view source on GitHub ↗
(self, m)

Source from the content-addressed store, hash-verified

8748 return
8749
8750 def __sub__(self, m):
8751 if hasattr(m, "__float__"):
8752 return Matrix(self.a - m, self.b - m, self.c - m,
8753 self.d - m, self.e - m, self.f - m)
8754 if len(m) != 6:
8755 raise ValueError("Matrix: bad seq len")
8756 return Matrix(self.a - m[0], self.b - m[1], self.c - m[2],
8757 self.d - m[3], self.e - m[4], self.f - m[5])
8758
8759 def __truediv__(self, m):
8760 if hasattr(m, "__float__"):

Callers

nothing calls this directly

Calls 1

MatrixClass · 0.85

Tested by

no test coverage detected