Mercurial > repos > public > sbplib_julia
view AbstractGrid.jl @ 188:4558789b5948 boundary_conditions
Add module for Lazy operations
- Add LazyElementWiseOperations for lazy evaluations of operations on AbstractArray
- Add lazy operations
- Add LazyArray which specialices the normal operations by their lazy counterparts.
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 20 Jun 2019 21:36:31 +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