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

Method scalar_matrix

cvxpy/interface/base_matrix_interface.py:81–82  ·  view source on GitHub ↗
(self, value, shape: tuple[int, ...])

Source from the content-addressed store, hash-verified

79 # A matrix with all entries equal to the given scalar value.
80 @abc.abstractmethod
81 def scalar_matrix(self, value, shape: tuple[int, ...]):
82 raise NotImplementedError()
83
84 # Return the value at the given index in the matrix.
85 def index(self, matrix, key):

Callers 3

zerosMethod · 0.95
onesMethod · 0.95
_format_blockMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected