Skip to content

Commit a0ae526

Browse files
committed
WIP
1 parent e172433 commit a0ae526

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/spreadinterp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ static void evaluate_kernel_vector(T *ker, T *args,
274274
}
275275
// Separate check from arithmetic (Is this really needed? doesn't slow down)
276276
for (int i = 0; i < N; i++)
277-
if (abs(args[i]) >= (T)opts.ES_halfwidth) ker[i] = 0.0;
277+
if (std::abs(args[i]) >= (T)opts.ES_halfwidth) ker[i] = 0.0;
278278
}
279279

280280
template<typename T, uint8_t w, uint8_t upsampfact,
@@ -2195,7 +2195,7 @@ T evaluate_kernel(T x, const finufft_spread_opts &opts)
21952195
Rescaled so max is 1, Barnett 7/21/24
21962196
*/
21972197
{
2198-
if (abs(x) >= (T)opts.ES_halfwidth)
2198+
if (std::abs(x) >= (T)opts.ES_halfwidth)
21992199
// if spreading/FT careful, shouldn't need this if, but causes no speed hit
22002200
return 0.0;
22012201
else
@@ -2212,7 +2212,7 @@ T evaluate_kernel_horner_kernel(T x, const finufft_spread_opts &opts)
22122212
using generated piecewise polynomial approximation to the kernel.
22132213
*/
22142214
{
2215-
if (abs(x) >= (T)opts.ES_halfwidth) {
2215+
if (std::abs(x) >= (T)opts.ES_halfwidth) {
22162216
// if spreading/FT careful, shouldn't need this if, but causes no speed hit
22172217
return 0.0;
22182218
} else {

0 commit comments

Comments
 (0)