Created
September 5, 2017 11:57
-
-
Save volf52/c3e948c517d2e0b995043ca3235f0b2b to your computer and use it in GitHub Desktop.
Matrix Multiplication - Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def multip(X, Y): | |
| return [[sum(a*b for a,b in zip(X_row,Y_col)) for Y_col in zip(*Y)] for X_row in X] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment