Mercurial > repos > public > sbplib_julia
comparison src/Grids/grid.jl @ 1337:f265799bc2b6 refactor/grids
Remove some comments
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Thu, 04 May 2023 08:38:48 +0200 |
| parents | 52087a6c0682 |
| children | c0c1189c5f2e |
comparison
equal
deleted
inserted
replaced
| 1336:52087a6c0682 | 1337:f265799bc2b6 |
|---|---|
| 92 return LazyTensors.LazyFunctionArray((I...)->f(g[I...]...), size(g)) | 92 return LazyTensors.LazyFunctionArray((I...)->f(g[I...]...), size(g)) |
| 93 end | 93 end |
| 94 end | 94 end |
| 95 # TBD: How does `eval_on` relate to `map`. Should the be closer in name? | 95 # TBD: How does `eval_on` relate to `map`. Should the be closer in name? |
| 96 | 96 |
| 97 | |
| 98 # TODO: Explain how and where these are intended to be used | |
| 99 _ncomponents(::Type{<:Number}) = 1 | 97 _ncomponents(::Type{<:Number}) = 1 |
| 100 _ncomponents(T::Type{<:SVector}) = length(T) | 98 _ncomponents(T::Type{<:SVector}) = length(T) |
