Skip to content

Instantly share code, notes, and snippets.

@ajp619
Last active August 14, 2017 21:08
Show Gist options
  • Save ajp619/d67881262f0a2cf6aeafa4484ab2cd78 to your computer and use it in GitHub Desktop.
Save ajp619/d67881262f0a2cf6aeafa4484ab2cd78 to your computer and use it in GitHub Desktop.
Best way to multiply matrices in python
a = np.array([[1, 2, 3]])
np.mat(a) * np.mat(a).T # this can continue ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment