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

Method get_variable_tensor

cvxpy/lin_ops/backends/base.py:984–989  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

982
983 @abstractmethod
984 def get_variable_tensor(self, shape: tuple[int, ...], variable_id: int) -> Any:
985 """
986 Returns tensor of a variable node, i.e., eye(n) across axes 0 and 1, where n is
987 the size of the variable.
988 """
989 pass # noqa
990
991 @abstractmethod
992 def get_data_tensor(self, data: Any) -> Any:

Callers 3

process_constraintMethod · 0.95

Calls

no outgoing calls

Tested by 2