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

Method get_param_tensor

cvxpy/lin_ops/backends/base.py:999–1004  ·  view source on GitHub ↗

Returns tensor of a parameter node, i.e., eye(n) across axes 0 and 2, where n is the size of the parameter.

(self, shape: tuple[int, ...], parameter_id: int)

Source from the content-addressed store, hash-verified

997
998 @abstractmethod
999 def get_param_tensor(self, shape: tuple[int, ...], parameter_id: int) -> Any:
1000 """
1001 Returns tensor of a parameter node, i.e., eye(n) across axes 0 and 2, where n is
1002 the size of the parameter.
1003 """
1004 pass # noqa

Callers 2

process_constraintMethod · 0.95
test_get_param_tensorMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_get_param_tensorMethod · 0.36