/external/llvm-project/libcxx/test/libcxx/numerics/complex.number/ |
D | __sqr.pass.cpp | 26 typedef std::complex<T> cplx; in test() typedef 29 cplx value; in test() 30 cplx expected; in test() 34 {cplx( 0, 0), cplx( 0, 0)}, in test() 35 {cplx( 1, 0), cplx( 1, 0)}, in test() 36 {cplx( 2, 0), cplx( 4, 0)}, in test() 37 {cplx(-1, 0), cplx( 1, 0)}, in test() 38 {cplx( 0, 1), cplx(-1, 0)}, in test() 39 {cplx( 0, 2), cplx(-4, 0)}, in test() 40 {cplx( 0, -1), cplx(-1, 0)}, in test() [all …]
|
/external/libcxx/test/libcxx/numerics/complex.number/ |
D | __sqr.pass.cpp | 25 typedef std::complex<T> cplx; in test() typedef 28 cplx value; in test() 29 cplx expected; in test() 33 {cplx( 0, 0), cplx( 0, 0)}, in test() 34 {cplx( 1, 0), cplx( 1, 0)}, in test() 35 {cplx( 2, 0), cplx( 4, 0)}, in test() 36 {cplx(-1, 0), cplx( 1, 0)}, in test() 37 {cplx( 0, 1), cplx(-1, 0)}, in test() 38 {cplx( 0, 2), cplx(-4, 0)}, in test() 39 {cplx( 0, -1), cplx(-1, 0)}, in test() [all …]
|
/external/llvm-project/flang/include/flang/Lower/ |
D | ComplexExpr.h | 28 mlir::Type getComplexPartType(mlir::Value cplx); 39 mlir::Value extractComplexPart(mlir::Value cplx, bool isImagPart) { in extractComplexPart() argument 40 return isImagPart ? extract<Part::Imag>(cplx) : extract<Part::Real>(cplx); in extractComplexPart() 44 std::pair<mlir::Value, mlir::Value> extractParts(mlir::Value cplx) { in extractParts() argument 45 return {extract<Part::Real>(cplx), extract<Part::Imag>(cplx)}; in extractParts() 48 mlir::Value insertComplexPart(mlir::Value cplx, mlir::Value part, in insertComplexPart() argument 50 return isImagPart ? insert<Part::Imag>(cplx, part) in insertComplexPart() 51 : insert<Part::Real>(cplx, part); in insertComplexPart() 59 mlir::Value extract(mlir::Value cplx) { in extract() argument 60 return builder.create<fir::ExtractValueOp>(loc, getComplexPartType(cplx), in extract() [all …]
|
/external/pffft/ |
D | bench_pffft.c | 275 void pffft_validate_N(int N, int cplx) { 279 int Nfloat = N*(cplx?2:1); 282 PFFFT_SETUP *s = PFFFT_FUNC(new_setup)(N, cplx ? PFFFT_COMPLEX : PFFFT_REAL); 304 if (!cplx) { 356 printf("%s forward PFFFT mismatch found for N=%d\n", (cplx?"CPLX":"REAL"), N); 373 … printf("pass=%d, %s IFFFT does not match for N=%d\n", pass, (cplx?"CPLX":"REAL"), N); break; 390 if (cplx || k > 0) { 411 printf("%s PFFFT is OK for N=%d\n", (cplx?"CPLX":"REAL"), N); fflush(stdout); 423 void pffft_validate(int cplx) { 428 if (N == 16 && !cplx) continue; [all …]
|
D | test_pffft.c | 76 int test(int N, int cplx, int useOrdered) { in test() argument 77 int Nfloat = (cplx ? N*2 : N); in test() 98 PFFFT_Setup *s = pffft_new_setup(N, cplx ? PFFFT_COMPLEX : PFFFT_REAL); in test() 101 PFFFTD_Setup *s = pffftd_new_setup(N, cplx ? PFFFT_COMPLEX : PFFFT_REAL); in test() 109 for ( k = m = 0; k < (cplx? N : (1 + N/2) ); k += N/16, ++m ) in test() 129 if (cplx) { in test() 167 for ( j = 0; j < ( cplx ? N : (1 + N/2) ); ++j ) in test() 169 if (!cplx && !j) /* special treatment for DC for real input */ in test() 171 else if (!cplx && j == N/2) /* treat 0.5 * samplerate */ in test() 176 …printf("%s fft %d: pwr[j = %d] = %g == %f dB\n", (cplx ? "cplx":"real"), N, j, pwr, PWR2LOG(pwr) … in test() [all …]
|
D | test_pffft.cpp | 67 const bool cplx = pffft::Fft<T>::isComplexTransform(); in Ttest() local 104 for (k = m = 0; k < (cplx ? N : (1 + N / 2)); k += N / 16, ++m) { in Ttest() 122 if (cplx) { in Ttest() 147 for (j = 0; j < (cplx ? N : (1 + N / 2)); ++j) { in Ttest() 148 if (!cplx && !j) /* special treatment for DC for real input */ in Ttest() 150 else if (!cplx && j == N / 2) /* treat 0.5 * samplerate */ in Ttest() 157 (cplx ? "cplx" : "real"), in Ttest() 172 (cplx ? "cplx" : "real"), in Ttest() 198 (cplx ? "cplx" : "real"), in Ttest() 207 expextedMag = cplx ? amp : ((k == 0 || k == N / 2) ? amp : (amp / 2)); in Ttest() [all …]
|
/external/webrtc/common_audio/ |
D | real_fourier_unittest.cc | 31 RealFourier::fft_cplx_scoper cplx; in TEST() local 32 cplx = RealFourier::AllocCplxBuffer(3); in TEST() 33 ASSERT_TRUE(cplx.get() != nullptr); in TEST() 34 uintptr_t ptr_value = reinterpret_cast<uintptr_t>(cplx.get()); in TEST()
|
/external/tensorflow/tensorflow/lite/toco/ |
D | import_tensorflow_test.cc | 404 using cplx = std::complex<float>; in TEST_F() typedef 407 ElementsAre(std::complex<float>(1.0000, -1.0000), cplx(1.0001, -1.0001), in TEST_F() 408 cplx(1.0002, -1.0002), cplx(1.0003, -1.0003), in TEST_F() 409 cplx(1.0004, -1.0004), cplx(1.0005, -1.0005))); in TEST_F() 413 ElementsAre(std::complex<float>(1.0000, -1.0000), cplx(1.0001, -1.0001), in TEST_F() 414 cplx(1.0002, -1.0002), cplx(1.0003, -1.0003), in TEST_F() 415 cplx(1.0004, -1.0004), cplx(1.0004, -1.0004))); in TEST_F() 420 ElementsAre(std::complex<float>(1.0000, -1.0000), cplx(1.0000, -1.0000), in TEST_F() 421 cplx(1.0000, -1.0000), cplx(1.0000, -1.0000), in TEST_F() 422 cplx(1.0000, -1.0000), cplx(1.0000, -1.0000))); in TEST_F()
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | cwise_ops_test.py | 1099 def _compareRealImag(self, cplx, use_gpu): argument 1100 np_real, np_imag = np.real(cplx), np.imag(cplx) 1104 inx = ops.convert_to_tensor(cplx) 1117 cplx = real + 1j * imag 1118 self._compareRealImag(cplx, use_gpu=False) 1119 self._compareRealImag(cplx, use_gpu=True) 1124 cplx = real + 1j * imag 1125 self._compareRealImag(cplx, use_gpu=False) 1126 self._compareRealImag(cplx, use_gpu=True) 1128 def _compareAngle(self, cplx, use_gpu): argument [all …]
|
/external/llvm-project/flang/lib/Lower/ |
D | ComplexExpr.cpp | 23 Fortran::lower::ComplexExprHelper::getComplexPartType(mlir::Value cplx) { in getComplexPartType() argument 24 return getComplexPartType(cplx.getType()); in getComplexPartType()
|
D | Mangler.cpp | 137 if (auto cplx{t.dyn_cast<fir::CplxType>()}) { in typeToString() local 138 return "z" + std::to_string(cplx.getFKind()); in typeToString()
|
D | IntrinsicCall.cpp | 442 if (auto cplx{t.dyn_cast<fir::CplxType>()}) in getFloatingPointWidth() local 443 return cplx.getFKind() * 4; in getFloatingPointWidth() 1020 mlir::Value cplx = args[0]; in genConjg() local 1023 cplx, /*isImagPart=*/true); in genConjg() 1026 cplx, negImag, /*isImagPart=*/true); in genConjg()
|
/external/clang/test/SemaCXX/ |
D | ast-print.cpp | 122 ConstrWithCleanupsClass(const VirualDestrClass& cplx = VirualDestrClass(42));
|
/external/llvm-project/clang/test/SemaCXX/ |
D | ast-print.cpp | 122 ConstrWithCleanupsClass(const VirualDestrClass& cplx = VirualDestrClass(42));
|
/external/llvm-project/mlir/test/CAPI/ |
D | ir.c | 627 MlirType cplx = mlirComplexTypeGet(f32); in printBuiltinTypes() local 628 if (!mlirTypeIsAComplex(cplx) || in printBuiltinTypes() 629 !mlirTypeEqual(mlirComplexTypeGetElementType(cplx), f32)) in printBuiltinTypes() 631 mlirTypeDump(cplx); in printBuiltinTypes()
|
/external/tensorflow/tensorflow/compiler/mlir/hlo/tests/ |
D | lhlo-legalize-to-linalg.mlir | 739 %cplx: memref<2x2xcomplex<f32>>) { 740 "lmhlo.complex"(%real, %imag, %cplx) 752 func @real(%cplx: memref<2x2xcomplex<f32>>, 754 "lmhlo.real"(%cplx, %real) 766 func @imag(%cplx: memref<2x2xcomplex<f32>>, 768 "lmhlo.imag"(%cplx, %imag)
|
/external/llvm-project/mlir/test/IR/ |
D | invalid-ops.mlir | 1276 func @real_part_from_incompatible_complex_type(%cplx: complex<f32>) { 1278 std.re %cplx : complex<f64> 1285 func @imaginary_part_from_incompatible_complex_type(%cplx: complex<f64>) { 1287 std.re %cplx : complex<f32>
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | algebraic_simplifier_test.cc | 1249 HloInstruction* cplx = builder.AddInstruction( in TEST_F() local 1254 EXPECT_EQ(root, cplx); in TEST_F() 1270 HloInstruction* cplx = builder.AddInstruction( in TEST_F() local 1274 HloInstruction::CreateUnary(r2f32, HloOpcode::kReal, cplx)); in TEST_F() 1294 HloInstruction* cplx = builder.AddInstruction( in TEST_F() local 1298 HloInstruction::CreateUnary(r2f32, HloOpcode::kImag, cplx)); in TEST_F()
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/tests/ |
D | elementwise.hlo | 3222 cplx = c64[100, 200]{1,0} parameter(5) 3237 r11 = f32[100, 200]{1,0} imag(cplx) 3244 r18 = f32[100, 200]{1,0} real(cplx)
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.6.rst | 1657 parenthesized complex numbers, meaning that ``complex(repr(cplx))``
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.6.rst | 1661 parenthesized complex numbers, meaning that ``complex(repr(cplx))``
|