diff --git a/ext/SparseDiffToolsPolyesterExt.jl b/ext/SparseDiffToolsPolyesterExt.jl index 8708646d..570f6852 100644 --- a/ext/SparseDiffToolsPolyesterExt.jl +++ b/ext/SparseDiffToolsPolyesterExt.jl @@ -58,7 +58,7 @@ function polyesterforwarddiff_color_jacobian(J::AbstractMatrix{<:Number}, f::F, if colorvec[cols_index[idx]] == color_i] rows_index_c = rows_index[pick_inds] cols_index_c = cols_index[pick_inds] - @simd for i in eachindex(rows_index_c, cols_index_c) + @inbounds @simd for i in 1:length(rows_index_c) J[rows_index_c[i], cols_index_c[i]] = dx[rows_index_c[i]] end color_i += 1