Hacker News new | ask | show | jobs
by isoprophlex 340 days ago
Numpy: Counting to 100, then reshaped to 10 x 10. Doesn't really seem all that different to me.
1 comments

It’s not very different, but it’s the numpy way is not the math way: when you talk math, you say “the exponent of the absolute value of the cosine of x”, like in APL, not “take x, get its cosine, then take the absolute value, and then get its exponent”

In fact, for many things, you so the math way in numpy as well. But in other things, the dot/object-oriented way is preferred.

APL is just consistent, terse, mathematical notation.