I am not very familiar with python so I apologise in advance. Is it at all possible to have a numpy array such as numpy.array([a, b, c]) and add that array to an empty numpy array as an element?
Assuming this is possible, is it possible to then sum the first value of each element of multiple arrays within the main numpy array. For instance,
numpy.array([numpy.array([a,b,c]), numpy.array([d,e,f])])
to then become
numpy.array([a + d, b + e, c + f])
I hope I have managed to explain clearly if unsure please feel free to ask me to expand.
Many Thanks :-)
objectdtypethat allows arrays to contain 'anything', much as lists do. But creating such an array can be tricky.np.arraytries, if possible, to create a multidimensional array of numbers. If falls back on the object dtype if it can't - or it raises an error. We get lots of SO questions from people who don't understand these complexities, e.g. stackoverflow.com/questions/49032948/…np.array([[1,2,3],[4,5,6]]). Or just adding 2 arrays together? np.array([1,2,3])+np.array([4,5,6])`.