diff src/LazyTensors/lazy_array.jl @ 1365:4684c7f1c4cb feature/variable_derivatives

Merge with default
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Sun, 21 May 2023 21:55:14 +0200
parents c5cf32fab163
children d7bc11053951
line wrap: on
line diff
--- a/src/LazyTensors/lazy_array.jl	Sat May 20 14:26:36 2023 +0200
+++ b/src/LazyTensors/lazy_array.jl	Sun May 21 21:55:14 2023 +0200
@@ -36,7 +36,7 @@
 
 function Base.getindex(lfa::LazyFunctionArray{F,T,D}, I::Vararg{Int,D}) where {F,T,D}
     @boundscheck checkbounds(lfa, I...)
-    return @inbounds lfa.f(I...)
+    return @inbounds @inline lfa.f(I...)
 end