Jan-18-2017, 10:03 PM
I'm modelling a 3D space.
I'd like to create a large multi dim array , like numpy.empty((720,720,720),dtype=object) in size, but anticipate for most of the program run time, few of the array elements will be used. The array indices are more for reference.
Is just using numpy.empty a decent way to do this? I'm not sure that initially creating 720x720x720 references to None objects is efficient.
Is a way a better way to dynamically create multii dim array?
I'd like to create a large multi dim array , like numpy.empty((720,720,720),dtype=object) in size, but anticipate for most of the program run time, few of the array elements will be used. The array indices are more for reference.
Is just using numpy.empty a decent way to do this? I'm not sure that initially creating 720x720x720 references to None objects is efficient.
Is a way a better way to dynamically create multii dim array?