We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c97e6 commit 91f1a17Copy full SHA for 91f1a17
src/prelude.jl
@@ -73,6 +73,3 @@ end
73
74
# This allows us to call `Base.require_one_based_indexing` in `gradient!` etc:
75
Base.has_offset_axes(::DiffResults.DiffResult) = false
76
-# And this is only needed for VERSION < v"1.2"
77
-require_one_based_indexing(A...) = !Base.has_offset_axes(A...) || throw(ArgumentError(
78
- "offset arrays are not supported but got an array with index other than 1"))
0 commit comments