Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- b = np.array([1.0, 0.75, 0.5, 0.25], dtype=np.float32)
- a = np.zeros((1001, 4), dtype=np.float32) + b
- a[0] = 8E6
- print(a.cumsum(axis=0)[-1])
RAW Paste Data