Sha256: 01d0150bb4c09e102fe13ee15b23a6420f493eaa36e27988aa76280edaa97e38
Contents?: true
Size: 314 Bytes
Versions: 19
Compression:
Stored size: 314 Bytes
Contents
#ifndef CUMO_SCOMPLEX_KERNEL_H #define CUMO_SCOMPLEX_KERNEL_H typedef cumo_scomplex dtype; typedef float rtype; #include "complex_macro_kernel.h" __device__ static inline bool c_nearly_eq(dtype x, dtype y) { return c_abs(c_sub(x,y)) <= (c_abs(x)+c_abs(y))*FLT_EPSILON*2; } #endif // CUMO_SCOMPLEX_KERNEL_H
Version data entries
19 entries across 19 versions & 1 rubygems