Tue, 19 Nov 2019 10:11:55 -0500
For inlining to work we cannot do function assignments
src/Translate.jl | file | annotate | diff | comparison | revisions |
--- a/src/Translate.jl Tue Nov 19 09:35:42 2019 -0500 +++ b/src/Translate.jl Tue Nov 19 10:11:55 2019 -0500 @@ -90,8 +90,6 @@ return v end -interpolate2d = interpolate2d_quadrants - ############## # Translation ############## @@ -102,7 +100,7 @@ @inbounds @simd for i=1:size(x, 1) @simd for j=1:size(x, 2) pt = (i - u[1, i, j], j - u[2, i, j]) - x[i, j] = interpolate2d(z, pt) + x[i, j] = interpolate2d_quadrants(z, pt) end end end @@ -113,7 +111,7 @@ @inbounds @simd for i=1:size(x, 1) @simd for j=1:size(x, 2) pt = (i - u[1], j - u[2]) - x[i, j] = interpolate2d(z, pt) + x[i, j] = interpolate2d_quadrants(z, pt) end end end @@ -140,7 +138,7 @@ @inbounds @simd for i=px:qx for j=py:qy - b[i, j] = interpolate2d(im, (i+vxʹ, j+vyʹ)) + b[i, j] = interpolate2d_quadrants(im, (i+vxʹ, j+vyʹ)) end end end