From a4299ab868fa381c844a781d005e7bdd12dab47d Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Thu, 19 Apr 2012 10:59:37 -0400 Subject: [PATCH] Better phrasing for warning in pyopencl-complex.h. --- src/cl/pyopencl-complex.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cl/pyopencl-complex.h b/src/cl/pyopencl-complex.h index 005ffab3..d027df29 100644 --- a/src/cl/pyopencl-complex.h +++ b/src/cl/pyopencl-complex.h @@ -24,6 +24,9 @@ // functions as visible below, e.g. cdouble_log(z). // // Under the hood, the complex types are simply float2 and double2. +// Note that native (operator-based) addition (float + float2) and +// multiplication (float2*float1) is defined for these types, +// but do not match the rules of complex arithmetic. #define PYOPENCL_DECLARE_COMPLEX_TYPE_INT(REAL_TP, REAL_3LTR, TPROOT, TP) \ \ -- GitLab