Skip to content

Instantly share code, notes, and snippets.

@cjhanks
Created January 22, 2017 23:54
Show Gist options
  • Save cjhanks/5cd635e58c0c76a000f86a89778c2597 to your computer and use it in GitHub Desktop.
Save cjhanks/5cd635e58c0c76a000f86a89778c2597 to your computer and use it in GitHub Desktop.
Matmul
import numpy as np
R = np.array([[0, 1],
[1, 0]])
p = np.array([3, 5])
print(R @ p)
# > [5 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment