Existence is a complex affair.
이 커밋은 다음에 포함됨:
1 부모
99c61ce7e4
커밋
3c83e047df
1 파일이 변경됨
+4
@@ -27,6 +27,10 @@ THE SOFTWARE.
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#if __cplusplus
|
#if __cplusplus
|
||||||
|
#define MAKE_COMPONENT_CONSTRUCTOR_TWO_COMPONENT(type, type1) \
|
||||||
|
__device__ __host__ type(type1 val) : x(val), y(val) {} \
|
||||||
|
__device__ __host__ type(type1 val1, type1 val2) : x(val1), y(val2) {}
|
||||||
|
|
||||||
#define COMPLEX_ADD_OP_OVERLOAD(type) \
|
#define COMPLEX_ADD_OP_OVERLOAD(type) \
|
||||||
__device__ __host__ static inline type operator+(const type& lhs, const type& rhs) { \
|
__device__ __host__ static inline type operator+(const type& lhs, const type& rhs) { \
|
||||||
type ret; \
|
type ret; \
|
||||||
|
|||||||
새 이슈에서 참조
사용자 차단