Lines Matching refs:_Tp
83 template <class _Tp>
84 static void _divT(const _Tp& __z1_r, const _Tp& __z1_i, in _divT()
85 const _Tp& __z2_r, const _Tp& __z2_i, in _divT()
86 _Tp& __res_r, _Tp& __res_i) { in _divT()
87 _Tp __ar = __z2_r >= 0 ? __z2_r : -__z2_r; in _divT()
88 _Tp __ai = __z2_i >= 0 ? __z2_i : -__z2_i; in _divT()
91 _Tp __ratio = __z2_r / __z2_i; in _divT()
92 _Tp __denom = __z2_i * (1 + __ratio * __ratio); in _divT()
97 _Tp __ratio = __z2_i / __z2_r; in _divT()
98 _Tp __denom = __z2_r * (1 + __ratio * __ratio); in _divT()
104 template <class _Tp>
105 static void _divT(const _Tp& __z1_r, in _divT()
106 const _Tp& __z2_r, const _Tp& __z2_i, in _divT()
107 _Tp& __res_r, _Tp& __res_i) { in _divT()
108 _Tp __ar = __z2_r >= 0 ? __z2_r : -__z2_r; in _divT()
109 _Tp __ai = __z2_i >= 0 ? __z2_i : -__z2_i; in _divT()
112 _Tp __ratio = __z2_r / __z2_i; in _divT()
113 _Tp __denom = __z2_i * (1 + __ratio * __ratio); in _divT()
118 _Tp __ratio = __z2_i / __z2_r; in _divT()
119 _Tp __denom = __z2_r * (1 + __ratio * __ratio); in _divT()
166 template <class _Tp>
167 static complex<_Tp> sqrtT(const complex<_Tp>& z) { in sqrtT()
168 _Tp re = z._M_re; in sqrtT()
169 _Tp im = z._M_im; in sqrtT()
170 _Tp mag = ::hypot(re, im); in sqrtT()
171 complex<_Tp> result; in sqrtT()
201 template <class _Tp>
202 static complex<_Tp> expT(const complex<_Tp>& z) { in expT()
203 _Tp expx = ::exp(z._M_re); in expT()
204 return complex<_Tp>(expx * ::cos(z._M_im), in expT()
220 template <class _Tp>
221 static complex<_Tp> log10T(const complex<_Tp>& z, const _Tp& ln10_inv) { in log10T()
222 complex<_Tp> r; in log10T()
251 template <class _Tp>
252 static complex<_Tp> logT(const complex<_Tp>& z) { in logT()
253 complex<_Tp> r; in logT()
272 template <class _Tp>
273 static complex<_Tp> powT(const _Tp& a, const complex<_Tp>& b) { in powT()
274 _Tp logr = ::log(a); in powT()
275 _Tp x = ::exp(logr * b._M_re); in powT()
276 _Tp y = logr * b._M_im; in powT()
278 return complex<_Tp>(x * ::cos(y), x * ::sin(y)); in powT()
281 template <class _Tp>
282 static complex<_Tp> powT(const complex<_Tp>& z_in, int n) { in powT()
283 complex<_Tp> z = z_in; in powT()
284 z = _STLP_PRIV __power(z, (n < 0 ? -n : n), multiplies< complex<_Tp> >()); in powT()
286 return _Tp(1.0) / z; in powT()
291 template <class _Tp>
292 static complex<_Tp> powT(const complex<_Tp>& a, const _Tp& b) { in powT()
293 _Tp logr = ::log(::hypot(a._M_re,a._M_im)); in powT()
294 _Tp logi = ::atan2(a._M_im, a._M_re); in powT()
295 _Tp x = ::exp(logr * b); in powT()
296 _Tp y = logi * b; in powT()
298 return complex<_Tp>(x * ::cos(y), x * ::sin(y)); in powT()
301 template <class _Tp>
302 static complex<_Tp> powT(const complex<_Tp>& a, const complex<_Tp>& b) { in powT()
303 _Tp logr = ::log(::hypot(a._M_re,a._M_im)); in powT()
304 _Tp logi = ::atan2(a._M_im, a._M_re); in powT()
305 _Tp x = ::exp(logr * b._M_re - logi * b._M_im); in powT()
306 _Tp y = logr * b._M_im + logi * b._M_re; in powT()
308 return complex<_Tp>(x * ::cos(y), x * ::sin(y)); in powT()