Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ multip
Function
multip
recipes/Python/Matrix Operations without numpy/matrix_ops.py:5–6 ·
view source on GitHub ↗
(X, Y)
Source
from the content-addressed store, hash-verified
3
4
5
def
multip(X, Y):
6
return
[[sum(a*b
for
a, b in zip(X_row, Y_col))
for
Y_col in zip(*Y)]
for
X_row in X]
7
8
9
def
getMatrixMinor(m, i, j):
Callers
nothing calls this directly
Calls
1
sum
Function · 0.50
Tested by
no test coverage detected