diff grid.jl @ 39:5ec57ec148ef

Merge latest changes
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Thu, 10 Jan 2019 14:57:18 +0100
parents 2dce28c59429 e86c65958aa1
children 3d8bfb695497
line wrap: on
line diff
--- a/grid.jl	Thu Jan 10 14:55:57 2019 +0100
+++ b/grid.jl	Thu Jan 10 14:57:18 2019 +0100
@@ -133,4 +133,10 @@
     end
 end
 
+# Evaluate function f on the grid g
+function evalOn(g::Grid, f::Function)
+    F(x) = f(x...)
+    return F.(points(g))
 end
+
+end