Mercurial > repos > public > sbplib_julia
changeset 1402:2d9eb2d07802 feature/grids/scalar_eval_on
Fix formatting and delete stray "`"
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 22 Aug 2023 15:31:59 +0200 |
parents | dba1e8c95bbb |
children | efd992899896 |
files | src/Grids/grid.jl |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
diff -r dba1e8c95bbb -r 2d9eb2d07802 src/Grids/grid.jl --- a/src/Grids/grid.jl Tue Aug 22 15:30:29 2023 +0200 +++ b/src/Grids/grid.jl Tue Aug 22 15:31:59 2023 +0200 @@ -90,10 +90,11 @@ return LazyTensors.LazyFunctionArray((I...)->f(g[I...]...), size(g)) end end + """ eval_on(g::Grid, f::Number) -Lazy evaluation of a scalar `f` on the grid. ` +Lazy evaluation of a scalar `f` on the grid. For concrete array grid functions `map(f,g)` can be used instead. """