Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KnowingNothing/MatmulTutorial
/ get_ind_matrix
Function
get_ind_matrix
cutlass.py/swizzle.py:32–33 ·
view source on GitHub ↗
(rows, cols)
Source
from the content-addressed store, hash-verified
30
def
test_swizzle():
31
32
def
get_ind_matrix(rows, cols):
33
return
[[(x, y)
for
y in range(cols)]
for
x in range(rows)]
34
35
def
get_row_major_ind(x, y, rows, cols):
36
return
x * cols + y
Callers
1
test_swizzle
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_swizzle
Function · 0.68