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 b63d58b commit 2de2f32Copy full SHA for 2de2f32
ext/static/array_index.jl
@@ -12,7 +12,7 @@ end
12
return _strides2int(offsets(x), static_strides(x), Tuple(i)) + static(1)
13
end
14
@generated function _strides2int(o::O, s::S, i::I) where {O,S,I}
15
- N = length(S)
+ N = known_length(S)
16
out = :()
17
for i in 1:N
18
tmp = :(((getfield(i, $i) - getfield(o, $i)) * getfield(s, $i)))
0 commit comments