numpy: dot product

PHOTO EMBED

Mon May 03 2021 16:22:37 GMT+0000 (UTC)

Saved by @suibhne #c++ #output #xcode #redirection

import numpy as np
p = np.array([1/2, 1/2])
ex = np.array([1, 2])
dot_prod = ex @ p
content_copyCOPY