Matrix Multiply

Multiply two matrices.

Code

General
[[sum(a[i][k] * b[k][j] for k in range(len(b))) for j in range(len(b[0]))] for i in range(len(a))]

Parameters

First matrix

Second matrix

Server

More Python Snippets