/external/eigen/test/eigen2/ |
H A D | eigen2_mixingtypes.cpp | 26 typedef Matrix<std::complex<float>, SizeAtCompileType, SizeAtCompileType> Mat_cf; 27 typedef Matrix<std::complex<double>, SizeAtCompileType, SizeAtCompileType> Mat_cd; 30 typedef Matrix<std::complex<float>, SizeAtCompileType, 1> Vec_cf; 31 typedef Matrix<std::complex<double>, SizeAtCompileType, 1> Vec_cd;
|
H A D | main.h | 155 template<> inline float test_precision<std::complex<float> >() { return test_precision<float>(); } 156 template<> inline double test_precision<std::complex<double> >() { return test_precision<double>(); } 180 inline bool test_ei_isApprox(const std::complex<float>& a, const std::complex<float>& b) 181 { return ei_isApprox(a, b, test_precision<std::complex<float> >()); } 182 inline bool test_ei_isMuchSmallerThan(const std::complex<float>& a, const std::complex<float>& b) 183 { return ei_isMuchSmallerThan(a, b, test_precision<std::complex<float> >()); } 185 inline bool test_ei_isApprox(const std::complex<double>& a, const std::complex<doubl [all...] |
/external/eigen/test/ |
H A D | hessenberg.cpp | 54 CALL_SUBTEST_1(( hessenberg<std::complex<double>,1>() )); 55 CALL_SUBTEST_2(( hessenberg<std::complex<double>,2>() )); 56 CALL_SUBTEST_3(( hessenberg<std::complex<float>,4>() )); 58 CALL_SUBTEST_5(( hessenberg<std::complex<double>,Dynamic>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE)) ));
|
H A D | conservative_resize.cpp | 123 CALL_SUBTEST_4((run_matrix_tests<std::complex<float>, Eigen::RowMajor>())); 124 CALL_SUBTEST_4((run_matrix_tests<std::complex<float>, Eigen::ColMajor>())); 125 CALL_SUBTEST_5((run_matrix_tests<std::complex<double>, Eigen::RowMajor>())); 126 CALL_SUBTEST_6((run_matrix_tests<std::complex<double>, Eigen::ColMajor>())); 131 CALL_SUBTEST_4((run_vector_tests<std::complex<float> >())); 132 CALL_SUBTEST_5((run_vector_tests<std::complex<double> >()));
|
H A D | conjugate_gradient.cpp | 29 CALL_SUBTEST_2(test_conjugate_gradient_T<std::complex<double> >());
|
H A D | main.h | 23 #include <complex> 216 template<> inline float test_precision<std::complex<float> >() { return test_precision<float>(); } 217 template<> inline double test_precision<std::complex<double> >() { return test_precision<double>(); } 241 inline bool test_isApprox(const std::complex<float>& a, const std::complex<float>& b) 242 { return internal::isApprox(a, b, test_precision<std::complex<float> >()); } 243 inline bool test_isMuchSmallerThan(const std::complex<float>& a, const std::complex<float>& b) 244 { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<float> >()); } 246 inline bool test_isApprox(const std::complex<doubl [all...] |
/external/eigen/unsupported/test/ |
H A D | dgmres.cpp | 30 CALL_SUBTEST_2(test_dgmres_T<std::complex<double> >());
|
H A D | gmres.cpp | 30 CALL_SUBTEST_2(test_gmres_T<std::complex<double> >());
|
H A D | FFTW.cpp | 14 std::complex<T> RandomCpx() { return std::complex<T>( (T)(rand()/(T)RAND_MAX - .5), (T)(rand()/(T)RAND_MAX - .5) ); } 21 complex<long double> promote(complex<T> x) { return complex<long double>(x.real(),x.imag()); } 23 complex<long double> promote(float x) { return complex<long double>( x); } 24 complex<long double> promote(double x) { return complex<long double>( x); } 25 complex<lon [all...] |
H A D | matrix_square_root.cpp | 29 CALL_SUBTEST_5(testMatrixSqrt(Matrix<std::complex<float>,1,1>()));
|
/external/chromium_org/third_party/cython/src/Cython/Includes/cpython/ |
H A D | complex.pxd | 13 # This subtype of PyObject represents a Python complex number object. 15 ctypedef class __builtin__.complex [object PyComplexObject]: 22 # This instance of PyTypeObject represents the Python complex 23 # number type. It is the same object as complex and 35 # Create a new Python complex number object from a C Py_complex value. 48 # Return the Py_complex value of the complex number op.
|
/external/libcxx/test/containers/sequences/dynarray/dynarray.data/ |
H A D | default.pass.cpp | 24 #include <complex> 62 test<std::complex<double>> ( std::complex<double> ( 14, 0 ));
|
/external/libcxx/test/numerics/complex.number/cmplx.over/ |
H A D | imag.pass.cpp | 10 // <complex> 16 #include <complex> 31 constexpr std::complex<T> t{val, val}; 45 constexpr std::complex<T> t{val, val};
|
H A D | real.pass.cpp | 10 // <complex> 16 #include <complex> 31 constexpr std::complex<T> t{val, val}; 45 constexpr std::complex<T> t{val, val};
|
/external/libcxx/test/numerics/complex.number/complex.transcendentals/ |
H A D | cosh.pass.cpp | 10 // <complex> 13 // complex<T> 14 // cosh(const complex<T>& x); 16 #include <complex> 23 test(const std::complex<T>& c, std::complex<T> x) 32 test(std::complex<T>(0, 0), std::complex<T>(1, 0)); 37 typedef std::complex<double> C; 42 std::complex<doubl [all...] |
H A D | sqrt.pass.cpp | 10 // <complex> 13 // complex<T> 14 // sqrt(const complex<T>& x); 16 #include <complex> 23 test(const std::complex<T>& c, std::complex<T> x) 25 std::complex<T> a = sqrt(c); 34 test(std::complex<T>(64, 0), std::complex<T>(8, 0)); 42 std::complex<doubl [all...] |
H A D | tanh.pass.cpp | 10 // <complex> 13 // complex<T> 14 // tanh(const complex<T>& x); 16 #include <complex> 23 test(const std::complex<T>& c, std::complex<T> x) 32 test(std::complex<T>(0, 0), std::complex<T>(0, 0)); 37 typedef std::complex<double> C; 42 std::complex<doubl [all...] |
H A D | exp.pass.cpp | 10 // <complex> 13 // complex<T> 14 // exp(const complex<T>& x); 16 #include <complex> 23 test(const std::complex<T>& c, std::complex<T> x) 32 test(std::complex<T>(0, 0), std::complex<T>(1, 0)); 40 std::complex<double> r = exp(x[i]);
|
/external/eigen/Eigen/src/plugins/ |
H A D | CommonCwiseUnaryOps.h | 67 /** Overloaded for efficient real matrix times complex scalar value */ 68 inline const CwiseUnaryOp<internal::scalar_multiple2_op<Scalar,std::complex<Scalar> >, const Derived> 69 operator*(const std::complex<Scalar>& scalar) const 71 return CwiseUnaryOp<internal::scalar_multiple2_op<Scalar,std::complex<Scalar> >, const Derived> 72 (*static_cast<const Derived*>(this), internal::scalar_multiple2_op<Scalar,std::complex<Scalar> >(scalar)); 79 inline friend const CwiseUnaryOp<internal::scalar_multiple2_op<Scalar,std::complex<Scalar> >, const Derived> 80 operator*(const std::complex<Scalar>& scalar, const StorageBaseType& matrix) 97 /** \returns an expression of the complex conjugate of \c *this.
|
/external/libcxx/test/containers/sequences/dynarray/dynarray.cons/ |
H A D | default.pass.cpp | 28 #include <complex> 77 test<std::complex<double>> ( std::complex<double> ( 14, 0 ));
|
/external/eigen/Eigen/src/Core/arch/SSE/ |
H A D | Complex.h | 25 template<> struct packet_traits<std::complex<float> > : default_packet_traits 46 template<> struct unpacket_traits<Packet2cf> { typedef std::complex<float> type; enum {size=2}; }; 84 template<> EIGEN_STRONG_INLINE Packet2cf pload <Packet2cf>(const std::complex<float>* from) { EIGEN_DEBUG_ALIGNED_LOAD return Packet2cf(pload<Packet4f>(&numext::real_ref(*from))); } 85 template<> EIGEN_STRONG_INLINE Packet2cf ploadu<Packet2cf>(const std::complex<float>* from) { EIGEN_DEBUG_UNALIGNED_LOAD return Packet2cf(ploadu<Packet4f>(&numext::real_ref(*from))); } 87 template<> EIGEN_STRONG_INLINE Packet2cf pset1<Packet2cf>(const std::complex<float>& from) 105 template<> EIGEN_STRONG_INLINE Packet2cf ploaddup<Packet2cf>(const std::complex<float>* from) { return pset1<Packet2cf>(*from); } 107 template<> EIGEN_STRONG_INLINE void pstore <std::complex<float> >(std::complex<float> * to, const Packet2cf& from) { EIGEN_DEBUG_ALIGNED_STORE pstore(&numext::real_ref(*to), from.v); } 108 template<> EIGEN_STRONG_INLINE void pstoreu<std::complex<float> >(std::complex<floa [all...] |
/external/libcxx/test/containers/sequences/dynarray/dynarray.overview/ |
H A D | indexing.pass.cpp | 23 #include <complex> 66 test<std::complex<double>> ( {} );
|
/external/libcxx/test/utilities/tuple/tuple.tuple/tuple.elem/ |
H A D | tuple.by.type.pass.cpp | 12 #include <complex> 19 typedef std::complex<float> cf;
|
/external/stlport/stlport/stl/ |
H A D | _complex.c | 44 void complex<_Tp>::_div(const _Tp& __z1_r, const _Tp& __z1_i, 65 void complex<_Tp>::_div(const _Tp& __z1_r, 92 operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __z) { 107 operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __z) { 133 __z = complex<_Tp>(__re, __im);
|
/external/eigen/unsupported/Eigen/src/SparseExtra/ |
H A D | MarketIO.h | 34 inline bool GetMarketLine (std::stringstream& line, int& M, int& N, int& i, int& j, std::complex<Scalar>& value) 42 value = std::complex<Scalar>(valR, valI); 57 inline void GetVectorElt (const std::string& line, std::complex<RealScalar>& val) 62 val = std::complex<RealScalar>(valR, valI); 69 if(internal::is_same<Scalar, std::complex<float> >::value || internal::is_same<Scalar, std::complex<double> >::value) 71 header += " complex"; 90 inline void PutMatrixElt(std::complex<Scalar> value, int row, int col, std::ofstream& out) 102 inline void putVectorElt(std::complex<Scalar> value, std::ofstream& out) 125 if(substr[3].compare("complex") [all...] |