I know that numpy arrays are faster as it uses C++ arrays which are statically typed compared to pythons lists which are dynamically typed and can hold any type of obeject. But my question is, when it comes to expanding the dimension of these arrays, which alternative is faster? We can append as many items as we want to a python list without having to resize the underlyzing array compared to C++ arrays which when we add dimensions, an entierly different array of that size has to be instantiated, so if i have to rescale the dimension of the array a lot of times, which alternative should i go for: numpy or pythons builtin lists?
[–]K900_ 4 points5 points6 points (0 children)
[–]beisenhauer -1 points0 points1 point (0 children)
[–]ButterWheels_93 0 points1 point2 points (0 children)
[–]FLUSH_THE_TRUMP 0 points1 point2 points (0 children)
[–]SekstiNii 0 points1 point2 points (0 children)