4 ms·
Julia already has bounds checking at runtime on array access, so you could do the mod operation only if the bounds check fails. But I don't get how this would
by dmurray 5y ago
Julia already has bounds checking at runtime on array access, so you could do the mod operation only if the bounds check fails.
But I don't get how this would practically work. Would each array have a preferred n that is used for the mod operation? For most situations where that makes sense, using a 2d array seems more logical.
- half-kh-hacker 5y agoI assume n would be size(a)
- dmurray 5y agoOh yeah - I got mixed up on this and thought we wanted to access sub arrays within a.