Skip to content

Commit 0aae377

Browse files
committed
Fix test failures
1 parent 97c3d7f commit 0aae377

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

stan/math/opencl/kernel_generator/elt_function_cl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ ADD_UNARY_FUNCTION_WITH_INCLUDES(inv_square,
307307
opencl_kernels::inv_square_device_function)
308308
ADD_UNARY_FUNCTION_WITH_INCLUDES(inv_logit,
309309
opencl_kernels::inv_logit_device_function)
310-
ADD_UNARY_FUNCTION_WITH_INCLUDES(logit, opencl_kernels::logit_device_function,
311-
opencl_kernels::log1m_device_function)
310+
ADD_UNARY_FUNCTION_WITH_INCLUDES(logit, opencl_kernels::log1m_device_function,
311+
opencl_kernels::logit_device_function)
312312
ADD_UNARY_FUNCTION_WITH_INCLUDES(Phi, opencl_kernels::phi_device_function)
313313
ADD_UNARY_FUNCTION_WITH_INCLUDES(Phi_approx,
314314
opencl_kernels::inv_logit_device_function,

stan/math/opencl/kernels/device_functions/inv_logit.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static const char* inv_logit_device_function
5656
*/
5757
double inv_logit(double x) {
5858
if (x < 0) {
59-
if (x < log(2.2204460492503131E-16)) {
59+
if (x < log(DBL_EPSILON)) {
6060
return exp(x);
6161
}
6262
return exp(x) / (1 + exp(x));

0 commit comments

Comments
 (0)