Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
sign
Function · 0.45
Calls
2
shape
Method · 0.95
prod
Method · 0.45
Tested by
no test coverage detected