Home
last modified time | relevance | path

Searched refs:complex (Results 1 – 25 of 593) sorted by relevance

12345678910>>...24

/external/libcxx/test/std/numerics/complex.number/
Dcases.h20 std::complex<double> x[] =
22 std::complex<double>( 1.e-6, 1.e-6),
23 std::complex<double>(-1.e-6, 1.e-6),
24 std::complex<double>(-1.e-6, -1.e-6),
25 std::complex<double>( 1.e-6, -1.e-6),
27 std::complex<double>( 1.e+6, 1.e-6),
28 std::complex<double>(-1.e+6, 1.e-6),
29 std::complex<double>(-1.e+6, -1.e-6),
30 std::complex<double>( 1.e+6, -1.e-6),
32 std::complex<double>( 1.e-6, 1.e+6),
[all …]
/external/webrtc/webrtc/modules/audio_processing/beamformer/
Dcomplex_matrix_unittest.cc21 const complex<float> kValuesInitial[kNumRows][kNumCols] = { in TEST()
22 {complex<float>(1.1f, 1.1f), complex<float>(2.2f, -2.2f), in TEST()
23 complex<float>(3.3f, 3.3f), complex<float>(4.4f, -4.4f)}, in TEST()
24 {complex<float>(5.5f, 5.5f), complex<float>(6.6f, -6.6f), in TEST()
25 complex<float>(7.7f, 7.7f), complex<float>(8.8f, -8.8f)}}; in TEST()
27 const complex<float> kValuesExpected[kNumRows][kNumCols] = { in TEST()
28 {complex<float>(1.1f, -1.1f), complex<float>(2.2f, 2.2f), in TEST()
29 complex<float>(3.3f, -3.3f), complex<float>(4.4f, 4.4f)}, in TEST()
30 {complex<float>(5.5f, -5.5f), complex<float>(6.6f, 6.6f), in TEST()
31 complex<float>(7.7f, -7.7f), complex<float>(8.8f, 8.8f)}}; in TEST()
[all …]
Dmatrix_unittest.cc19 using std::complex;
219 const complex<float> kValues[kNumRows][kNumCols] = { in TEST()
220 {complex<float>(-4.f, 0), complex<float>(0, 9), complex<float>(3, -4)}}; in TEST()
221 const complex<float> kValuesExpected[kNumRows][kNumCols] = { in TEST()
222 {complex<float>(0.f, 2.f), complex<float>(2.1213202f, 2.1213202f), in TEST()
223 complex<float>(2.f, -1.f)}}; in TEST()
225 Matrix<complex<float> > operand_mat(*kValues, kNumRows, kNumCols); in TEST()
226 Matrix<complex<float> > expected_result(*kValuesExpected, kNumRows, kNumCols); in TEST()
227 Matrix<complex<float> > actual_result; in TEST()
241 const complex<float> kValues[kNumRows][kNumCols] = { in TEST()
[all …]
Dcomplex_matrix.h22 using std::complex;
26 class ComplexMatrix : public Matrix<complex<T> > {
28 ComplexMatrix() : Matrix<complex<T> >() {} in ComplexMatrix()
31 : Matrix<complex<T> >(num_rows, num_columns) {} in ComplexMatrix()
33 ComplexMatrix(const complex<T>* data, size_t num_rows, size_t num_columns) in ComplexMatrix()
34 : Matrix<complex<T> >(data, num_rows, num_columns) {} in ComplexMatrix()
38 complex<T>* const data = this->data(); in PointwiseConjugate()
68 complex<T>* const data = this->data(); in ZeroImag()
71 data[i] = complex<T>(data[i].real(), 0); in ZeroImag()
83 ComplexMatrix& ConjugateTranspose(const complex<T>* const* src) { in ConjugateTranspose()
[all …]
/external/libcxx/include/
Dcomplex2 //===--------------------------- complex ----------------------------------===//
15 complex synopsis
21 class complex
26 complex(const T& re = T(), const T& im = T()); // constexpr in C++14
27 complex(const complex&); // constexpr in C++14
28 template<class X> complex(const complex<X>&); // constexpr in C++14
36 complex<T>& operator= (const T&);
37 complex<T>& operator+=(const T&);
38 complex<T>& operator-=(const T&);
39 complex<T>& operator*=(const T&);
[all …]
/external/libcxx/test/std/numerics/complex.number/complex.ops/
Dstream_input.pass.cpp24 std::complex<double> c; in main()
26 assert(c == std::complex<double>(5, 0)); in main()
31 std::complex<double> c; in main()
33 assert(c == std::complex<double>(5, 0)); in main()
38 std::complex<double> c; in main()
40 assert(c == std::complex<double>(5, 0)); in main()
45 std::complex<double> c; in main()
47 assert(c == std::complex<double>(0, 0)); in main()
52 std::complex<double> c; in main()
54 assert(c == std::complex<double>(5.5, 0)); in main()
[all …]
Dcomplex_minus_complex.pass.cpp21 test(const std::complex<T>& lhs, const std::complex<T>& rhs, std::complex<T> x) in test()
31 std::complex<T> lhs(1.5, 2.5); in test()
32 std::complex<T> rhs(3.5, 4.5); in test()
33 std::complex<T> x(-2.0, -2.0); in test()
37 std::complex<T> lhs(1.5, -2.5); in test()
38 std::complex<T> rhs(-3.5, 4.5); in test()
39 std::complex<T> x(5.0, -7.0); in test()
Dcomplex_plus_complex.pass.cpp21 test(const std::complex<T>& lhs, const std::complex<T>& rhs, std::complex<T> x) in test()
31 std::complex<T> lhs(1.5, 2.5); in test()
32 std::complex<T> rhs(3.5, 4.5); in test()
33 std::complex<T> x(5.0, 7.0); in test()
37 std::complex<T> lhs(1.5, -2.5); in test()
38 std::complex<T> rhs(-3.5, 4.5); in test()
39 std::complex<T> x(-2.0, 2.0); in test()
Dcomplex_equals_complex.pass.cpp25 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr()
26 constexpr std::complex<T> rhs(1.5, -2.5); in test_constexpr()
30 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr()
31 constexpr std::complex<T> rhs(1.5, 2.5); in test_constexpr()
42 std::complex<T> lhs(1.5, 2.5); in test()
43 std::complex<T> rhs(1.5, -2.5); in test()
47 std::complex<T> lhs(1.5, 2.5); in test()
48 std::complex<T> rhs(1.5, 2.5); in test()
Dcomplex_not_equals_complex.pass.cpp25 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr()
26 constexpr std::complex<T> rhs(1.5, -2.5); in test_constexpr()
30 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr()
31 constexpr std::complex<T> rhs(1.5, 2.5); in test_constexpr()
43 std::complex<T> lhs(1.5, 2.5); in test()
44 std::complex<T> rhs(1.5, -2.5); in test()
48 std::complex<T> lhs(1.5, 2.5); in test()
49 std::complex<T> rhs(1.5, 2.5); in test()
/external/webrtc/webrtc/modules/audio_processing/intelligibility/
Dintelligibility_utils.h33 std::complex<float> zerofudge(std::complex<float> c);
37 std::complex<float> NewMean(std::complex<float> mean,
38 std::complex<float> data,
42 void AddToMean(std::complex<float> data,
44 std::complex<float>* mean);
81 void Step(const std::complex<float>* data, bool skip_fudge = false) {
97 void InfiniteStep(const std::complex<float>* data, bool dummy);
98 void DecayStep(const std::complex<float>* data, bool dummy);
99 void WindowedStep(const std::complex<float>* data, bool dummy);
100 void BlockedStep(const std::complex<float>* data, bool dummy);
[all …]
Dintelligibility_utils.cc22 using std::complex;
39 complex<float> zerofudge(complex<float> c) { in zerofudge()
40 return complex<float>(AddDitherIfZero(c.real()), AddDitherIfZero(c.imag())); in zerofudge()
43 complex<float> NewMean(complex<float> mean, complex<float> data, size_t count) { in NewMean()
47 void AddToMean(complex<float> data, size_t count, complex<float>* mean) { in AddToMean()
58 : running_mean_(new complex<float>[num_freqs]()), in VarianceArray()
59 running_mean_sq_(new complex<float>[num_freqs]()), in VarianceArray()
60 sub_running_mean_(new complex<float>[num_freqs]()), in VarianceArray()
61 sub_running_mean_sq_(new complex<float>[num_freqs]()), in VarianceArray()
71 history_.reset(new rtc::scoped_ptr<complex<float>[]>[num_freqs_]()); in VarianceArray()
[all …]
Dintelligibility_utils_unittest.cc24 using std::complex;
31 vector<vector<complex<float>>> GenerateTestData(int freqs, int samples) { in GenerateTestData()
32 vector<vector<complex<float>>> data(samples); in GenerateTestData()
36 data[i].push_back(complex<float>(val, val)); in GenerateTestData()
53 complex<float> t0(1.f, 0.f); in TEST()
61 const complex<float> data[] = {{3, 8}, {7, 6}, {2, 1}, {8, 9}, {0, 6}}; in TEST()
62 const complex<float> means[] = {{3, 8}, {5, 7}, {4, 5}, {5, 6}, {4, 6}}; in TEST()
63 complex<float> mean(3, 8); in TEST()
83 const vector<vector<complex<float>>> test_data( in TEST()
125 vector<vector<complex<float>>> test_data(kSamples); in TEST()
[all …]
/external/libcxx/test/std/numerics/complex.number/cmplx.over/
Dpow.pass.cpp40 test(T x, const std::complex<U>& y) in test()
43 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test()
44 assert(std::pow(x, y) == pow(std::complex<V>(x, 0), std::complex<V>(y))); in test()
49 test(const std::complex<T>& x, U y) in test()
52 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test()
53 assert(std::pow(x, y) == pow(std::complex<V>(x), std::complex<V>(y, 0))); in test()
58 test(const std::complex<T>& x, const std::complex<U>& y) in test()
61 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test()
62 assert(std::pow(x, y) == pow(std::complex<V>(x), std::complex<V>(y))); in test()
69 test(T(3), std::complex<U>(4, 5)); in test()
[all …]
/external/eigen/blas/f2c/
Dcomplexdots.c21 complex cdotc_(integer *n, complex *cx, integer in cdotc_()
22 *incx, complex *cy, integer *incy) in cdotc_()
24 complex res; in cdotc_()
25 extern /* Subroutine */ int cdotcw_(integer *, complex *, integer *, in cdotc_()
26 complex *, integer *, complex *); in cdotc_()
37 complex cdotu_(integer *n, complex *cx, integer in cdotu_()
38 *incx, complex *cy, integer *incy) in cdotu_()
40 complex res; in cdotu_()
41 extern /* Subroutine */ int cdotuw_(integer *, complex *, integer *, in cdotu_()
42 complex *, integer *, complex *); in cdotu_()
/external/libcxx/test/std/numerics/complex.number/complex.literals/
Dliterals.pass.cpp22 static_assert ( std::is_same<decltype( 3.0il ), std::complex<long double>>::value, "" ); in main()
23 static_assert ( std::is_same<decltype( 3il ), std::complex<long double>>::value, "" ); in main()
24 static_assert ( std::is_same<decltype( 3.0i ), std::complex<double>>::value, "" ); in main()
25 static_assert ( std::is_same<decltype( 3i ), std::complex<double>>::value, "" ); in main()
26 static_assert ( std::is_same<decltype( 3.0if ), std::complex<float>>::value, "" ); in main()
27 static_assert ( std::is_same<decltype( 3if ), std::complex<float>>::value, "" ); in main()
30 std::complex<long double> c1 = 3.0il; in main()
31 assert ( c1 == std::complex<long double>(0, 3.0)); in main()
37 std::complex<double> c1 = 3.0i; in main()
38 assert ( c1 == std::complex<double>(0, 3.0)); in main()
[all …]
/external/libcxx/test/std/numerics/complex.number/complex.value.ops/
Dconj.pass.cpp21 test(const std::complex<T>& z, std::complex<T> x) in test()
30 test(std::complex<T>(1, 2), std::complex<T>(1, -2)); in test()
31 test(std::complex<T>(-1, 2), std::complex<T>(-1, -2)); in test()
32 test(std::complex<T>(1, -2), std::complex<T>(1, 2)); in test()
33 test(std::complex<T>(-1, -2), std::complex<T>(-1, 2)); in test()
Dproj.pass.cpp23 test(const std::complex<T>& z, std::complex<T> x) in test()
32 test(std::complex<T>(1, 2), std::complex<T>(1, 2)); in test()
33 test(std::complex<T>(-1, 2), std::complex<T>(-1, 2)); in test()
34 test(std::complex<T>(1, -2), std::complex<T>(1, -2)); in test()
35 test(std::complex<T>(-1, -2), std::complex<T>(-1, -2)); in test()
43 std::complex<double> r = proj(x[i]); in test_edges()
/external/llvm/test/CodeGen/X86/
Dwiden_load-1.ll21 "file complex.c, line 27, bb1":
23 br label %"file complex.c, line 27, bb13"
25 "file complex.c, line 27, bb13": ; preds = %"file complex.c, line 27, bb1"
31 br label %"file complex.c, line 34, bb4"
33 "file complex.c, line 34, bb4": ; preds = %"file complex.c, line 27, bb13"
38 br i1 %r8, label %"file complex.c, line 34, bb7", label %"file complex.c, line 27, bb5"
40 "file complex.c, line 27, bb5": ; preds = %"file complex.c, line 34, bb4"
41 br label %"file complex.c, line 35, bb6"
43 "file complex.c, line 35, bb6": ; preds = %"file complex.c, line 27, bb5"
47 br label %"file complex.c, line 34, bb7"
[all …]
/external/eigen/test/
Dmixingtypes.cpp28 typedef std::complex<float> CF; in mixingtypes()
29 typedef std::complex<double> CD; in mixingtypes()
32 typedef Matrix<std::complex<float>, SizeAtCompileType, SizeAtCompileType> Mat_cf; in mixingtypes()
33 typedef Matrix<std::complex<double>, SizeAtCompileType, SizeAtCompileType> Mat_cd; in mixingtypes()
36 typedef Matrix<std::complex<float>, SizeAtCompileType, 1> Vec_cf; in mixingtypes()
37 typedef Matrix<std::complex<double>, SizeAtCompileType, 1> Vec_cd; in mixingtypes()
42 Mat_cd mcd = mcf.template cast<complex<double> >(); in mixingtypes()
46 Vec_cd vcd = vcf.template cast<complex<double> >(); in mixingtypes()
49 complex<float> scf = internal::random<complex<float> >(); in mixingtypes()
50 complex<double> scd = internal::random<complex<double> >(); in mixingtypes()
[all …]
/external/clang/test/SemaCXX/
Dcxx1y-user-defined-literals.cpp21 template<typename T> struct complex {}; struct
22 complex<float> operator""if(long double);
23 complex<float> operator""if(unsigned long long);
24 complex<double> operator""i(long double);
25 complex<double> operator""i(unsigned long long);
26 complex<long double> operator""il(long double);
27 complex<long double> operator""il(unsigned long long);
40 complex<float> cf1 = 1if, cf2 = 2.if, cf3 = 0x3if;
41 complex<double> cd1 = 1i, cd2 = 2.i, cd3 = 0b0110101i;
42 complex<long double> cld1 = 1il, cld2 = 2.il, cld3 = 0047il;
/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/
Dtan.pass.cpp23 test(const std::complex<T>& c, std::complex<T> x) in test()
32 test(std::complex<T>(0, 0), std::complex<T>(0, 0)); in test()
33 test(std::complex<T>(10000, -10000), std::complex<T>(0, -1)); in test()
38 typedef std::complex<double> C; in test_edges()
43 std::complex<double> r = tan(x[i]); in test_edges()
44 std::complex<double> t1(-imag(x[i]), real(x[i])); in test_edges()
45 std::complex<double> t2 = tanh(t1); in test_edges()
46 std::complex<double> z(imag(t2), -real(t2)); in test_edges()
Dsin.pass.cpp23 test(const std::complex<T>& c, std::complex<T> x) in test()
32 test(std::complex<T>(0, 0), std::complex<T>(0, 0)); in test()
37 typedef std::complex<double> C; in test_edges()
42 std::complex<double> r = sin(x[i]); in test_edges()
43 std::complex<double> t1(-imag(x[i]), real(x[i])); in test_edges()
44 std::complex<double> t2 = sinh(t1); in test_edges()
45 std::complex<double> z(imag(t2), -real(t2)); in test_edges()
Datan.pass.cpp23 test(const std::complex<T>& c, std::complex<T> x) in test()
32 test(std::complex<T>(0, 0), std::complex<T>(0, 0)); in test()
37 typedef std::complex<double> C; in test_edges()
41 std::complex<double> r = atan(x[i]); in test_edges()
42 std::complex<double> t1(-imag(x[i]), real(x[i])); in test_edges()
43 std::complex<double> t2 = atanh(t1); in test_edges()
44 std::complex<double> z(imag(t2), -real(t2)); in test_edges()
/external/libxml2/result/schemas/
Dderivation-ok-restriction-2-1-1_0_0.err1complex type, attribute use 'barB_1': The 'optional' attribute use is inconsistent with the corre…
2 … error : local complex type, attribute use 'barC_1': Neither a matching attribute use, nor a match…
3 … error : local complex type, attribute use 'barC_2': Neither a matching attribute use, nor a match…
4 … error : local complex type, attribute use 'barD_1': Neither a matching attribute use, nor a match…
5 … error : local complex type, attribute use 'barD_2': Neither a matching attribute use, nor a match…
6 …emas parser error : local complex type: A matching attribute use for the 'required' attribute use …

12345678910>>...24