Is it possible to make one element in a numpy array share the same memory address with another element in a different numpy array, so that if I change one, the other element in the other numpy array changes?
a = np.random.uniform(0, 1, 4) #[0.2, 0.5, 0.6, 0.3]
b = np.random.uniform(0, 1, 4) #[0.4, 0.7, 0.8, 0.1]
#let b[0] = a[0]
b[0] = a[0] # b[0] = 0.2 and a[0] = 0.2
If I change b[0], I want a[0] to also change. How do I do that?