-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forbid offsets #586
Forbid offsets #586
Conversation
be62c4b
to
6d5f6c3
Compare
I think it would be better to put the checks in the functions that assume one-based indexing ForwardDiff.jl/src/apiutils.jl Lines 62 to 84 in 78c73af
|
My hope is that eventually general indexing could be supported, and these checks can be removed as soon as there are tests that it works. I didn't bother to figure out precisely where the failures were, but did check that all the functions to which this error was added do currently fail. |
* no offsets * ... and no piracy * import from Base
* no offsets * ... and no piracy * import from Base
This follows LinearAlgebra in explicitly forbidding offset arrays. They don't work anyway, but this replaces a BoundsError with something deliberate: