MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / operator/

Function operator/

src/tests/include/blas-math.h:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86static inline FloatComplex
87operator/(FloatComplex a, FloatComplex b)
88{
89 cl_float div = CREAL(b) * CREAL(b) + CIMAG(b) * CIMAG(b);
90
91 return floatComplex(
92 (CREAL(a) * CREAL(b) + CIMAG(a) * CIMAG(b)) / div,
93 (CREAL(b) * CIMAG(a) - CREAL(a) * CIMAG(b)) / div);
94}
95
96static inline FloatComplex
97operator/(FloatComplex a, cl_float b)

Callers

nothing calls this directly

Calls 2

floatComplexFunction · 0.50
doubleComplexFunction · 0.50

Tested by

no test coverage detected