Mercurial > repos > public > sbplib_julia
comparison src/LazyTensors/lazy_array.jl @ 1351:d7f29359b822
Merge refactor/grids
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 19 May 2023 23:53:36 +0200 |
parents | c5cf32fab163 |
children | d7bc11053951 |
comparison
equal
deleted
inserted
replaced
1323:95cac1ee8476 | 1351:d7f29359b822 |
---|---|
34 | 34 |
35 Base.size(lfa::LazyFunctionArray) = lfa.size | 35 Base.size(lfa::LazyFunctionArray) = lfa.size |
36 | 36 |
37 function Base.getindex(lfa::LazyFunctionArray{F,T,D}, I::Vararg{Int,D}) where {F,T,D} | 37 function Base.getindex(lfa::LazyFunctionArray{F,T,D}, I::Vararg{Int,D}) where {F,T,D} |
38 @boundscheck checkbounds(lfa, I...) | 38 @boundscheck checkbounds(lfa, I...) |
39 return @inbounds lfa.f(I...) | 39 return @inbounds @inline lfa.f(I...) |
40 end | 40 end |
41 | 41 |
42 | 42 |
43 """ | 43 """ |
44 LazyElementwiseOperation{T,D,Op} <: LazyArray{T,D} | 44 LazyElementwiseOperation{T,D,Op} <: LazyArray{T,D} |