4 ms·
Numpy is not perfect but this is the first time I've heard it being referred to as abominable. What is it doing fundamentally wrong?
by mertd 10y ago
Numpy is not perfect but this is the first time I've heard it being referred to as abominable. What is it doing fundamentally wrong?
- goatlover 10y agoYeah, I'm scratching my head over that comment as well.
- metaobject 10y agoI actually find numpy to be fairly consistent and intuitive. Usually the code ends up being faster and more concise. I love the masking ability of the ndarrays as well as the support for broadcasting operations.
- enriquto 10y agoMaybe "abominable" is an exaggeration... However, after translating some exercices from Octave to python/numpy, I have experienced a great deal of frustration. A simple three-line solution in Octave becomes a fifteen-line behemoth that does not even work consistently across different versions of the system.
- lp251 10y agoCan you give a specific example?
- newen 10y agoAny slightly complicated indexing of array in numpy is a pain. I've spent hours reading the numpy documentation for indexing. After that project I've completely forgotten how to do indexing in numpy. I expect I'll spend more hours reading the same documentation if I ever go back to numpy. Compared to Matlab, it is ridiculously complicated.
- breatheoften 10y agoI don't see how this doesn't lead to a LOT of silently broken code ... In [3]: x = np.array([1,2,3]) In [4]: x[0:500] Out[4]: array([1, 2, 3])