Skip to content

Commit

Permalink
use a view to build differential vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepijn de Vos committed Nov 16, 2023
1 parent 3e1b66d commit 7783066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dense/generic_dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ function get_differential_vars(f, idxs, size)
if idxs === nothing || differential_vars === nothing
return differential_vars
else
return differential_vars[idxs]
return @view differential_vars[idxs]
end
end

Expand Down

0 comments on commit 7783066

Please sign in to comment.