(self, matrix, shape: tuple[int, ...])
| 93 | # Coerce the matrix into the given shape. |
| 94 | @abc.abstractmethod |
| 95 | def reshape(self, matrix, shape: tuple[int, ...]): |
| 96 | raise NotImplementedError() |
| 97 | |
| 98 | def block_add(self, matrix, block, vert_offset, horiz_offset, rows, cols, |
| 99 | vert_step: int = 1, horiz_step: int = 1) -> None: |