Mercurial > repos > public > sbplib_julia
diff grid_refactor.md @ 1269:20f42cf0800c refactor/grids
Add test for Grid and make them pass. Start implementing eval_on
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 25 Feb 2023 22:22:50 +0100 |
parents | 9c9ea2900250 |
children | dcd8654ca33b |
line wrap: on
line diff
--- a/grid_refactor.md Fri Feb 24 21:54:39 2023 +0100 +++ b/grid_refactor.md Sat Feb 25 22:22:50 2023 +0100 @@ -100,10 +100,24 @@ ## Should Grid have function for the target manifold dimension? Where would it be used? In the constructor for TensorGrid + In eval on if we want to allow multiargument functions Elsewhere? An alternative is to analyze T in Grid{T,D} to find the answer. (See combined_coordinate_vector_type in tensor_grid.jl) +## Lazy version of map for our needs? +Could be used to + * evaulate functions on grids + * pick out components of grid functions + * More? + +Maybe this: +```julia +struct LazyMappedArray <: LazyArray + f::F + v::AT +end +``` ## Notes from pluto notebook - Är det dåligt att använda ndims om antalet index inte matchar?