comparison 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
comparison
equal deleted inserted replaced
1268:dbddd0f61bde 1269:20f42cf0800c
98 Läs i notes.md om: Vector valued grid functions 98 Läs i notes.md om: Vector valued grid functions
99 99
100 ## Should Grid have function for the target manifold dimension? 100 ## Should Grid have function for the target manifold dimension?
101 Where would it be used? 101 Where would it be used?
102 In the constructor for TensorGrid 102 In the constructor for TensorGrid
103 In eval on if we want to allow multiargument functions
103 Elsewhere? 104 Elsewhere?
104 105
105 An alternative is to analyze T in Grid{T,D} to find the answer. (See combined_coordinate_vector_type in tensor_grid.jl) 106 An alternative is to analyze T in Grid{T,D} to find the answer. (See combined_coordinate_vector_type in tensor_grid.jl)
106 107
108 ## Lazy version of map for our needs?
109 Could be used to
110 * evaulate functions on grids
111 * pick out components of grid functions
112 * More?
113
114 Maybe this:
115 ```julia
116 struct LazyMappedArray <: LazyArray
117 f::F
118 v::AT
119 end
120 ```
107 121
108 ## Notes from pluto notebook 122 ## Notes from pluto notebook
109 - Är det dåligt att använda ndims om antalet index inte matchar? 123 - Är det dåligt att använda ndims om antalet index inte matchar?
110 - Tex ostrukturerat grid 124 - Tex ostrukturerat grid
111 - Baserat på hur Array fungerar och ndims docs borde den nog returnera 125 - Baserat på hur Array fungerar och ndims docs borde den nog returnera