We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c576ba commit 087f2dbCopy full SHA for 087f2db
src/general/smoothing_kernels.jl
@@ -145,7 +145,7 @@ struct SchoenbergCubicSplineKernel{NDIMS} <: AbstractSmoothingKernel{NDIMS} end
145
146
# We do not use `+=` or `-=` since these are not recognized by MuladdMacro.jl.
147
# Use `//` to preserve the type of `q`.
148
- result = 1 // 4 * (2 - q)^3
+ result = 1 * (2 - q)^3 / 4
149
result = result - (q < 1) * (1 - q)^3
150
151
# Zero out result if q >= 2
@@ -160,7 +160,7 @@ end
160
161
# We do not use `+=` or `-=` since these are not recognized by MuladdMacro.jl
162
163
- result = -3 // 4 * (2 - q)^2
+ result = -3 * (2 - q)^2 / 4
164
result = result + 3 * (q < 1) * (1 - q)^2
165
166
0 commit comments