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

Method size

cvxpy/interface/base_matrix_interface.py:58–59  ·  view source on GitHub ↗
(self, matrix)

Source from the content-addressed store, hash-verified

56
57 # Return the number of elements of the matrix.
58 def size(self, matrix):
59 return np.prod(self.shape(matrix), dtype=int)
60
61 # Return the dimensions of the matrix.
62 @abc.abstractmethod

Callers 1

signFunction · 0.45

Calls 2

shapeMethod · 0.95
prodMethod · 0.45

Tested by

no test coverage detected