Skip to content

Instantly share code, notes, and snippets.

@volf52
Created September 5, 2017 11:57
Show Gist options
  • Select an option

  • Save volf52/c3e948c517d2e0b995043ca3235f0b2b to your computer and use it in GitHub Desktop.

Select an option

Save volf52/c3e948c517d2e0b995043ca3235f0b2b to your computer and use it in GitHub Desktop.
Matrix Multiplication - Python
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