Mercurial > repos > public > sbplib_julia
diff benchmark/benchmarks.jl @ 1529:43aaf710463e refactor/equidistant_grid/signature
Change to signature of equidistant_grid to same style as many array methods.
See for example Array{T}(undef, dims...), zeros(T, dims...), fill(a, dims...) and more.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 11 Apr 2024 22:31:04 +0200 |
parents | 127d2558926e |
children | 7f5e4d2a5112 29c7a787e67d |
line wrap: on
line diff
--- a/benchmark/benchmarks.jl Wed Apr 10 09:01:54 2024 +0200 +++ b/benchmark/benchmarks.jl Thu Apr 11 22:31:04 2024 +0200 @@ -15,9 +15,9 @@ ll(d) = ntuple(i->0., d) lu(d) = ntuple(i->1., d) -g1 = equidistant_grid(sz(1)[1],ll(1)[1],lu(1)[1]) -g2 = equidistant_grid(sz(2),ll(2),lu(2)) -g3 = equidistant_grid(sz(3),ll(3),lu(3)) +g1 = equidistant_grid(ll(1)[1], lu(1)[1], sz(1)[1]) +g2 = equidistant_grid(ll(2), lu(2), sz(2)) +g3 = equidistant_grid(ll(3), lu(3), sz(3)) v1 = rand(sz(1)...) v2 = rand(sz(2)...)