Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ _shape
Function
_shape
matrix/matrix_operation.py:169–170 ·
view source on GitHub ↗
(matrix: list[list[int]])
Source
from the content-addressed store, hash-verified
167
168
169
def
_shape(matrix: list[list[int]]) -> tuple[int, int]:
170
return
len(matrix), len(matrix[0])
171
172
173
def
_verify_matrix_sizes(
Callers
1
_verify_matrix_sizes
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected