Mercurial > repos > public > sbplib_julia
view AbstractGrid.jl @ 176:24779d423243 boundary_conditions
Attempt to handle TensorMappings acting on expressions of TensorApplications and AbstractArrays
- Draft TensorApplicationExpression
- Add note on how broadcasting could be used for lazy evaluations of expressions
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 17 Jun 2019 09:02:19 +0200 |
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