Add missing macro MAKE_COMPONENT_CONSTRUCTOR_TWO_COMPONENT to hip_complex.h
此提交包含在:
1 父節點
edab13da7d
當前提交
8ddadf835d
1 file changed
+3
@@ -94,6 +94,9 @@ THE SOFTWARE.
|
||||
ret.y = lhs.y * rhs; \
|
||||
return ret; \
|
||||
}
|
||||
#define MAKE_COMPONENT_CONSTRUCTOR_TWO_COMPONENT(ComplexT, T) \
|
||||
ComplexT(T val) : x(val), y(val) {} \
|
||||
ComplexT(T val1, T val2) : x(val1), y(val2) {}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
封鎖使用者