MCPcopy 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
5def 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
9def getMatrixMinor(m, i, j):

Callers

nothing calls this directly

Calls 1

sumFunction · 0.50

Tested by

no test coverage detected