MCPcopy Create free account
hub / github.com/cvxpy/cvxpy / reshape

Method reshape

cvxpy/interface/base_matrix_interface.py:95–96  ·  view source on GitHub ↗
(self, matrix, shape: tuple[int, ...])

Source from the content-addressed store, hash-verified

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:

Callers 1

_format_blockMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected