Mercurial > repos > public > sbplib_julia
diff stencil.jl @ 94:84b1ad5a3755 stencil_index
Made everything work(?) but also go really slow. And also not type-stable.
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Mon, 04 Feb 2019 16:09:07 +0100 |
parents | 93df72e2b135 |
children |
line wrap: on
line diff
--- a/stencil.jl Mon Feb 04 09:13:48 2019 +0100 +++ b/stencil.jl Mon Feb 04 16:09:07 2019 +0100 @@ -19,7 +19,6 @@ Base.@propagate_inbounds function apply(s::Stencil, v::AbstractVector, i::Int) w = zero(eltype(v)) - @show s.range[1]:s.range[2] for j ∈ s.range[1]:s.range[2] @inbounds weight = s[j] w += weight*v[i+j]