Sha256: 0df9b12c5db5beff06c07006412942d456b24b6e7febdcf739a305dc6964ee1b

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 Bytes

Contents

#ifndef CUMO_SCOMPLEX_KERNEL_H
#define CUMO_SCOMPLEX_KERNEL_H

typedef 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

1 entries across 1 versions & 1 rubygems

Version Path
cumo-0.1.0 ext/cumo/include/cumo/types/scomplex_kernel.h