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

Method concat

src/__init__.py:8769–8774  ·  view source on GitHub ↗

Multiply two matrices and replace current one.

(self, one, two)

Source from the content-addressed store, hash-verified

8767 return m2.concat(self, m1)
8768
8769 def concat(self, one, two):
8770 """Multiply two matrices and replace current one."""
8771 if not len(one) == len(two) == 6:
8772 raise ValueError("Matrix: bad seq len")
8773 self.a, self.b, self.c, self.d, self.e, self.f = util_concat_matrix(one, two)
8774 return self
8775
8776 def invert(self, src=None):
8777 """Calculate the inverted matrix. Return 0 if successful and replace

Callers 3

__mul__Method · 0.95
__truediv__Method · 0.95
test_matrixFunction · 0.80

Calls 1

util_concat_matrixFunction · 0.85

Tested by 1

test_matrixFunction · 0.64