fix complex conjugate for double-complex (#1659)

The sign in the y component returned from hipConj incorrect for double-complex. Fix to match as in hipConjf above.
Cette révision appartient à :
Nick Curtis a créé et Maneesh Gupta a révisé 2019-11-18 12:19:12 +05:30
1 Parent 7985ad218f
révision cae9b13020
1 fichier modifié
+1 -1
+1 -1
Voir le fichier
@@ -186,7 +186,7 @@ __device__ __host__ static inline hipDoubleComplex make_hipDoubleComplex(double
__device__ __host__ static inline hipDoubleComplex hipConj(hipDoubleComplex z) {
hipDoubleComplex ret;
ret.x = z.x;
ret.y = z.y;
ret.y = -z.y;
return ret;
}