feat(numpy): support negative indices in checked array accessors (#6201)
reject negative indices in numpy array bounds checks
fix(numpy): clarify negative index errors and document no wrapping
Use a single unsigned bounds compare, say in the error message that negative indices are not supported, document the behavior on the accessors, and cover offset_at/offset_at_t in test_bounds_check.
Assisted-by: ClaudeCode:claude-opus-5-5
- feat(numpy): support negative indices in checked array accessors
Co-authored-by: sayed ahrar sayed@sproutxp.com Co-authored-by: Henry Schreiner henryfs@princeton.edu
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号