ndarray
ndarray copied to clipboard
More informative messages when index out of bound
trafficstars
Hi thanks for the lib! When I made a bug and access index out of bound (e.g. arr.slice(s![a..b, c..d])), I see:
Slice begin 16744 is past end of axis of length 184
I would appreciate it if it could be a bit more informative, such as:
Slice begin 16744 is past end of axis of length 184 (array size: 1234x184; slice arg: 123x16744)
Then, programmers can debug the problem quicker - at least we know which axis goes wrong.