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

Method get_stack_func

cvxpy/lin_ops/backends/base.py:793–798  ·  view source on GitHub ↗

Returns a function that takes in a tensor, modifies the shape of the tensor by extending it to total_rows, and then shifts the entries by offset along axis 0.

(total_rows: int, offset: int)

Source from the content-addressed store, hash-verified

791 @staticmethod
792 @abstractmethod
793 def get_stack_func(total_rows: int, offset: int) -> Callable:
794 """
795 Returns a function that takes in a tensor, modifies the shape of the tensor by extending
796 it to total_rows, and then shifts the entries by offset along axis 0.
797 """
798 pass # noqa
799
800 def hstack(self, lin: LinOp, view: TensorView) -> TensorView:
801 """

Callers 1

hstackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected