view AbstractGrid.jl @ 1883:61745afa1508 parallel_test

Close branch. There are better ways
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 28 Jan 2025 21:58:36 +0100
parents 631eb9b35d72
children
line wrap: on
line source

abstract type AbstractGrid end

function dimension(grid::AbstractGrid)
    error("Not implemented for abstact type AbstractGrid")
end

function points(grid::AbstractGrid)
    error("Not implemented for abstact type AbstractGrid")
end

# Evaluate function f on the grid g
function evalOn(g::AbstractGrid, f::Function)
    F(x) = f(x...)
    return F.(points(g))
end