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

Version Path
cumo-0.4.3 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.4.2 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.4.1 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.4.0 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.3.5 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.3.4 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.3.3 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.3.2 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.3.1 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.3.0 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.3.0.pre1 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.2.5 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.2.4 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.2.3 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.2.2 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.2.1 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.2.0 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.1.2 ext/cumo/include/cumo/types/scomplex_kernel.h
cumo-0.1.1 ext/cumo/include/cumo/types/scomplex_kernel.h