I have a set of python classes and each of the classes have some distinct numpy arrays. I want to have a dictionary in each class that has reference to all of arrays in that class. I need this to be able allow an external function to update the values of each array in the objects of these classes.
I figured out that storing the numpy array directly does not work. When the array is updated a new array is created and the dictionary still has the old one.
Is there a way to store a reference to a variable in a dictionary?