Sha256: e1a709ebf123a5fe6b6af51d40f7a4c26bf51e981ac2b20a9ac2570cbcc8cfc8
Contents?: true
Size: 310 Bytes
Versions: 1
Compression:
Stored size: 310 Bytes
Contents
#ifndef CUMO_DCOMPLEX_KERNEL_H #define CUMO_DCOMPLEX_KERNEL_H typedef dcomplex dtype; typedef double 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))*DBL_EPSILON*2; } #endif // CUMO_DCOMPLEX_KERNEL_H
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cumo-0.1.0 | ext/cumo/include/cumo/types/dcomplex_kernel.h |