Mercurial > repos > public > sbplib_julia
diff src/Grids/tensor_grid.jl @ 1256:3fc78ad26d03 refactor/grids
Add notes and todos about interface implementations for grids
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 22 Feb 2023 22:38:54 +0100 |
parents | 6f75f2d2bf5c |
children | 198ccda331a6 |
line wrap: on
line diff
--- a/src/Grids/tensor_grid.jl Wed Feb 22 22:38:25 2023 +0100 +++ b/src/Grids/tensor_grid.jl Wed Feb 22 22:38:54 2023 +0100 @@ -10,6 +10,12 @@ end end +# Indexing interface +# TODO +# Iteration interface +# TODO + + function Base.size(g::TensorGrid) return LazyTensors.concatenate_tuples(size.(g.grids)...) end