diff src/Grids/grid.jl @ 1343:fa3695f634de refactor/grids

More clean up of todos and notes
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 15 May 2023 22:37:33 +0200
parents c0c1189c5f2e
children 760a4a1ec4b7
line wrap: on
line diff
--- a/src/Grids/grid.jl	Fri May 12 15:50:09 2023 +0200
+++ b/src/Grids/grid.jl	Mon May 15 22:37:33 2023 +0200
@@ -82,9 +82,9 @@
 with each coordinate as an argument, or on the form `f(x̄)` taking a
 coordinate vector.
 
-TODO: Mention map(f,g) if you want a concrete array
+If the goal is a concrete array `map(f,g)` can be used instead.
 """
-eval_on(g::Grid, f) = eval_on(g, f, Base.IteratorSize(g)) # TBD: Borde f vara först som i alla map, sum, och dylikt
+eval_on(g::Grid, f) = eval_on(g, f, Base.IteratorSize(g))
 function eval_on(g::Grid, f, ::Base.HasShape)
     if hasmethod(f, (Any,))
         return LazyTensors.LazyFunctionArray((I...)->f(g[I...]), size(g))