Home
last modified time | relevance | path

Searched full:imag (Results 1 – 25 of 1305) sorted by relevance

12345678910>>...53

/aosp_15_r20/external/pytorch/c10/test/util/
H A Dcomplex_math_test_common.h22 C10_ASSERT_NEAR(e_i_pi.imag(), 0, tol); in C10_DEFINE_TEST()
27 C10_ASSERT_NEAR(e_i_pi.imag(), 0, tol); in C10_DEFINE_TEST()
32 C10_ASSERT_NEAR(e_i_pi.imag(), 0, tol); in C10_DEFINE_TEST()
37 C10_ASSERT_NEAR(e_i_pi.imag(), 0, tol); in C10_DEFINE_TEST()
46 float expected_real = std::exp(x.real()) * std::cos(x.imag()); in C10_DEFINE_TEST()
47 float expected_imag = std::exp(x.real()) * std::sin(x.imag()); in C10_DEFINE_TEST()
49 C10_ASSERT_NEAR(e.imag(), expected_imag, tol); in C10_DEFINE_TEST()
54 float expected_real = ::exp(x.real()) * ::cos(x.imag()); in C10_DEFINE_TEST()
55 float expected_imag = ::exp(x.real()) * ::sin(x.imag()); in C10_DEFINE_TEST()
57 C10_ASSERT_NEAR(e.imag(), expected_imag, tol); in C10_DEFINE_TEST()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/lib/clang/19/include/openmp_wrappers/
Dcomplex_cmath.h35 return hypot(__c.real(), __c.imag()); in abs()
41 return atan2(__c.imag(), __c.real()); in arg()
61 if (std::isinf(__c.imag())) in norm()
62 return abs(__c.imag()); in norm()
63 return __c.real() * __c.real() + __c.imag() * __c.imag(); in norm()
69 return std::complex<_Tp>(__c.real(), -__c.imag()); in conj()
76 if (std::isinf(__c.real()) || std::isinf(__c.imag())) in proj()
77 __r = std::complex<_Tp>(INFINITY, copysign(_Tp(0), __c.imag())); in proj()
122 if (std::isinf(__x.imag())) in sqrt()
123 return std::complex<_Tp>(_Tp(INFINITY), __x.imag()); in sqrt()
[all …]
/aosp_15_r20/prebuilts/clang-tools/linux-x86/lib64/clang/19/include/openmp_wrappers/
H A Dcomplex_cmath.h35 return hypot(__c.real(), __c.imag()); in abs()
41 return atan2(__c.imag(), __c.real()); in arg()
61 if (std::isinf(__c.imag())) in norm()
62 return abs(__c.imag()); in norm()
63 return __c.real() * __c.real() + __c.imag() * __c.imag(); in norm()
69 return std::complex<_Tp>(__c.real(), -__c.imag()); in conj()
76 if (std::isinf(__c.real()) || std::isinf(__c.imag())) in proj()
77 __r = std::complex<_Tp>(INFINITY, copysign(_Tp(0), __c.imag())); in proj()
122 if (std::isinf(__x.imag())) in sqrt()
123 return std::complex<_Tp>(_Tp(INFINITY), __x.imag()); in sqrt()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/lib/clang/19/include/openmp_wrappers/
Dcomplex_cmath.h35 return hypot(__c.real(), __c.imag()); in abs()
41 return atan2(__c.imag(), __c.real()); in arg()
61 if (std::isinf(__c.imag())) in norm()
62 return abs(__c.imag()); in norm()
63 return __c.real() * __c.real() + __c.imag() * __c.imag(); in norm()
69 return std::complex<_Tp>(__c.real(), -__c.imag()); in conj()
76 if (std::isinf(__c.real()) || std::isinf(__c.imag())) in proj()
77 __r = std::complex<_Tp>(INFINITY, copysign(_Tp(0), __c.imag())); in proj()
122 if (std::isinf(__x.imag())) in sqrt()
123 return std::complex<_Tp>(_Tp(INFINITY), __x.imag()); in sqrt()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/lib/clang/18/include/openmp_wrappers/
Dcomplex_cmath.h35 return hypot(__c.real(), __c.imag()); in abs()
41 return atan2(__c.imag(), __c.real()); in arg()
61 if (std::isinf(__c.imag())) in norm()
62 return abs(__c.imag()); in norm()
63 return __c.real() * __c.real() + __c.imag() * __c.imag(); in norm()
69 return std::complex<_Tp>(__c.real(), -__c.imag()); in conj()
76 if (std::isinf(__c.real()) || std::isinf(__c.imag())) in proj()
77 __r = std::complex<_Tp>(INFINITY, copysign(_Tp(0), __c.imag())); in proj()
122 if (std::isinf(__x.imag())) in sqrt()
123 return std::complex<_Tp>(_Tp(INFINITY), __x.imag()); in sqrt()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/lib/clang/19/include/openmp_wrappers/
Dcomplex_cmath.h35 return hypot(__c.real(), __c.imag()); in abs()
41 return atan2(__c.imag(), __c.real()); in arg()
61 if (std::isinf(__c.imag())) in norm()
62 return abs(__c.imag()); in norm()
63 return __c.real() * __c.real() + __c.imag() * __c.imag(); in norm()
69 return std::complex<_Tp>(__c.real(), -__c.imag()); in conj()
76 if (std::isinf(__c.real()) || std::isinf(__c.imag())) in proj()
77 __r = std::complex<_Tp>(INFINITY, copysign(_Tp(0), __c.imag())); in proj()
122 if (std::isinf(__x.imag())) in sqrt()
123 return std::complex<_Tp>(_Tp(INFINITY), __x.imag()); in sqrt()
[all …]
/aosp_15_r20/external/python/cpython2/Modules/
Dcmathmodule.c101 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \
104 [special_type((z).imag)]; \
133 if (fabs(z.real) > CM_LARGE_DOUBLE || fabs(z.imag) > CM_LARGE_DOUBLE) { in c_acos()
135 r.real = atan2(fabs(z.imag), z.real); in c_acos()
139 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos()
140 M_LN2*2., z.imag); in c_acos()
142 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos()
143 M_LN2*2., -z.imag); in c_acos()
147 s1.imag = -z.imag; in c_acos()
150 s2.imag = z.imag; in c_acos()
[all …]
/aosp_15_r20/external/pytorch/aten/src/ATen/cuda/
H A Dllvm_complex.cpp42 : __re_(__c.real()), __im_(__c.imag()) {}
45 constexpr value_type imag() const {return __im_;}
48 void imag(value_type __im) {__im_ = __im;}
51 return real() || imag();
64 __im_ = __c.imag();
70 __im_ += __c.imag();
76 __im_ -= __c.imag();
81 *this = *this * complex(__c.real(), __c.imag());
86 *this = *this / complex(__c.real(), __c.imag());
107 constexpr float imag() const {return __im_;}
[all …]
/aosp_15_r20/external/python/cpython3/Modules/
Dcmathmodule.c112 r.imag = m_inf(); in c_infj()
133 r.imag = m_nan(); in c_nanj()
190 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \
193 [special_type((z).imag)]; \
232 if (fabs(z.real) > CM_LARGE_DOUBLE || fabs(z.imag) > CM_LARGE_DOUBLE) { in cmath_acos_impl()
234 r.real = atan2(fabs(z.imag), z.real); in cmath_acos_impl()
238 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl()
239 M_LN2*2., z.imag); in cmath_acos_impl()
241 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl()
242 M_LN2*2., -z.imag); in cmath_acos_impl()
[all …]
/aosp_15_r20/prebuilts/vndk/v32/x86_64/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v33/arm/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v32/arm/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v33/x86_64/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v30/arm/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v30/x86_64/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v31/x86_64/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v32/arm64/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v33/x86/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v34/x86/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v31/arm/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v33/arm64/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/external/libcxx/include/
H A Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v31/arm64/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v34/arm64/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]
/aosp_15_r20/prebuilts/vndk/v34/arm/include/external/libcxx/include/
Dcomplex31 T imag() const; // constexpr in C++14
34 void imag(T);
62 constexpr float imag() const;
63 void imag(float);
91 constexpr double imag() const;
92 void imag(double);
120 constexpr long double imag() const;
121 void imag(long double);
174 template<class T> T imag(const complex<T>&); // constexpr in C++14
175 long double imag(long double); // constexpr in C++14
[all …]

12345678910>>...53