4 ms·
https://docs.julialang.org/en/v1/manual/arrays/#Linear-indexing https://docs.julialang.org/en/v1/manual/arrays/#Linear-index...
by klaff 5y ago
https://docs.julialang.org/en/v1/manual/arrays/#Linear-indexing https://docs.julialang.org/en/v1/manual/arrays/#Linear-index...
- UncleOxidant 5y agoOk... I read that. I have to say it's very not intuitive. I like Julia overall, but this is an area where I scratch my head and say "Hmmm... why would they do that?" (performance, I'd guess, but it's not very user friendly). Is there a set of guidelines for translating Python/numpy code to Julia because indexing in Python/numpy works a lot differently (and seems more intuitive).
- klaff 5y agoYou've probably found this already: https://docs.julialang.org/en/v1/manual/noteworthy-differences/#Noteworthy-differences-from-Python https://docs.julialang.org/en/v1/manual/noteworthy-differenc... That's the only "official" python-julia resource I know of although I bet there are some blogs about the process.
- klaff 5y agoI will also say, a number of times I've thought something like "why would they do that?", and some months later (I'm kinda slow) I would realize that it now makes sense.