Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
theresa committed Apr 16, 2024
1 parent e1ef14c commit 5098ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/fastsum/kernels.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ C der_laplacian_rbf(R x, int der, const R *param) /* K(x)=|x|/c EXP(-|x|/c) *
case 0 : value = (FABS(x)/c)*EXP(-FABS(x)/c); break;
default:
value = (POW(K(-1.0),(R)der))*((FABS(x)-(R)der*c)/POW(c,(R)der+1))*EXP(-FABS(x)/c);
value *= 1 - 2 * ((x < K(0.0)) && (der % 2.0));
value *= 1 - 2 * ((x < K(0.0)) && (der % 2));
}

return value;
Expand Down

0 comments on commit 5098ca9

Please sign in to comment.