Home
last modified time | relevance | path

Searched refs:imag (Results 1 – 25 of 65) sorted by relevance

123

/external/ceres-solver/internal/ceres/
Dpolynomial_solver_test.cc66 Vector AddComplexRootPair(const Vector& poly, double real, double imag) { in AddComplexRootPair() argument
72 poly2.tail(poly.size()) += (real*real + imag*imag) * poly; in AddComplexRootPair()
122 Vector imag; in TEST() local
123 bool success = FindPolynomialRoots(poly, &real, &imag); in TEST()
131 Vector imag; in TEST() local
132 bool success = FindPolynomialRoots(poly, &real, &imag); in TEST()
136 EXPECT_EQ(imag.size(), 0); in TEST()
171 Vector imag; in TEST() local
175 bool success = FindPolynomialRoots(poly, &real, &imag); in TEST()
179 EXPECT_EQ(imag.size(), 2); in TEST()
[all …]
/external/eigen/Eigen/src/Core/util/
DMKL_support.h82 mklScalar.imag=eigenScalar.imag();
88 mklScalar.imag=eigenScalar.imag();
94 mklScalar.imag=-eigenScalar.imag();
100 mklScalar.imag=-eigenScalar.imag();
DBlasUtil.h70 { return Scalar(real(x)*real(y) + imag(x)*imag(y), imag(x)*real(y) - real(x)*imag(y)); }
80 { return Scalar(real(x)*real(y) + imag(x)*imag(y), real(x)*imag(y) - imag(x)*real(y)); }
90 { return Scalar(real(x)*real(y) - imag(x)*imag(y), - real(x)*imag(y) - imag(x)*real(y)); }
/external/llvm/test/CodeGen/PowerPC/
Da2-fp-basic.ll10 %a.imag = load double* %a.imagp
14 %b.imag = load double* %b.imagp
16 %mul.rr = fmul double %a.imag, %b.imag
18 %mul.il = fmul double %a.imag, %b.real
19 %mul.ir = fmul double %a.real, %b.imag
24 %c.imag = load double* %c.imagp
26 %add.i = fadd double %mul.i, %c.imag
28 %imag = getelementptr inbounds %0* %agg.result, i32 0, i32 1
30 store double %add.i, double* %imag
Dppc440-fp-basic.ll10 %a.imag = load double* %a.imagp
14 %b.imag = load double* %b.imagp
16 %mul.rr = fmul double %a.imag, %b.imag
18 %mul.il = fmul double %a.imag, %b.real
19 %mul.ir = fmul double %a.real, %b.imag
24 %c.imag = load double* %c.imagp
26 %add.i = fadd double %mul.i, %c.imag
28 %imag = getelementptr inbounds %0* %agg.result, i32 0, i32 1
30 store double %add.i, double* %imag
Dcomplex-return.ll11 %imag = getelementptr inbounds { ppc_fp128, ppc_fp128 }* %x, i32 0, i32 1
13 store ppc_fp128 0xMC00547AE147AE1483CA47AE147AE147A, ppc_fp128* %imag
17 %x.imag = load ppc_fp128* %x.imagp
21 store ppc_fp128 %x.imag, ppc_fp128* %imag2
37 %imag = getelementptr inbounds { float, float }* %x, i32 0, i32 1
39 store float 0xC00547AE20000000, float* %imag
43 %x.imag = load float* %x.imagp
47 store float %x.imag, float* %imag2
/external/compiler-rt/lib/ppc/
Ddivtc3.c46 DD imag = { .ld = __gcc_qdiv(imagNumerator, denom) }; in __divtc3() local
50 imag.s.hi = crt_scalbn(imag.s.hi, -ilogbw); in __divtc3()
51 imag.s.lo = crt_scalbn(imag.s.lo, -ilogbw); in __divtc3()
53 if (crt_isnan(real.s.hi) && crt_isnan(imag.s.hi)) in __divtc3()
64 imag.s.hi = crt_copysign(CRT_INFINITY,cDD.s.hi) * bDD.s.hi; in __divtc3()
65 imag.s.lo = 0.0; in __divtc3()
75 imag.s.hi = CRT_INFINITY * (bDD.s.hi*cDD.s.hi - aDD.s.hi*dDD.s.hi); in __divtc3()
76 imag.s.lo = 0.0; in __divtc3()
86 imag.s.hi = crt_copysign(0.0,(bDD.s.hi*cDD.s.hi - aDD.s.hi*dDD.s.hi)); in __divtc3()
87 imag.s.lo = 0.0; in __divtc3()
[all …]
Dmultc3.c33 DD imag = { .ld = __gcc_qadd(ad,bc) }; in __multc3() local
35 if (crt_isnan(real.s.hi) && crt_isnan(imag.s.hi)) in __multc3()
84 imag.s.hi = CRT_INFINITY * (aDD.s.hi*dDD.s.hi + bDD.s.hi*cDD.s.hi); in __multc3()
85 imag.s.lo = 0.0; in __multc3()
91 __imag__ z = imag.ld; in __multc3()
/external/eigen/unsupported/Eigen/src/FFT/
Dei_kissfft_impl.h121 …scratch[4] = Complex( scratch[4].imag()*negative_if_inverse , -scratch[4].real()* negative_if_inve… in bfly4()
150 …mplex( Fout->real() - Scalar(.5)*scratch[3].real() , Fout->imag() - Scalar(.5)*scratch[3].imag() ); in bfly3()
151 scratch[0] *= epi3.imag(); in bfly3()
153 … Fout[m2] = Complex( Fout[m].real() + scratch[0].imag() , Fout[m].imag() - scratch[0].real() ); in bfly3()
154 Fout[m] += Complex( -scratch[0].imag(),scratch[0].real() ); in bfly3()
196 (scratch[7].imag()*ya.real()) + (scratch[8].imag()*yb.real()) in bfly5()
200 (scratch[10].imag()*ya.imag()) + (scratch[9].imag()*yb.imag()), in bfly5()
201 -(scratch[10].real()*ya.imag()) - (scratch[9].real()*yb.imag()) in bfly5()
210 (scratch[7].imag()*yb.real()) + (scratch[8].imag()*ya.real()) in bfly5()
214 -(scratch[10].imag()*yb.imag()) + (scratch[9].imag()*ya.imag()), in bfly5()
[all …]
/external/eigen/Eigen/src/Eigenvalues/
DEigenSolver.h307 …if (internal::isMuchSmallerThan(internal::imag(m_eivalues.coeff(i)), internal::real(m_eivalues.coe… in pseudoEigenvalueMatrix()
311 …matD.template block<2,2>(i,i) << internal::real(m_eivalues.coeff(i)), internal::imag(m_eivalues.c… in pseudoEigenvalueMatrix()
312 … -internal::imag(m_eivalues.coeff(i)), internal::real(m_eivalues.coeff(i)); in pseudoEigenvalueMatrix()
328 …if (internal::isMuchSmallerThan(internal::imag(m_eivalues.coeff(j)), internal::real(m_eivalues.coe… in eigenvectors()
436 Scalar q = m_eivalues.coeff(n).imag(); in doComputeEigenvectors()
450 if (m_eivalues.coeff(i).imag() < 0.0) in doComputeEigenvectors()
458 if (m_eivalues.coeff(i).imag() == 0.0) in doComputeEigenvectors()
469 … - p) * (m_eivalues.coeff(i).real() - p) + m_eivalues.coeff(i).imag() * m_eivalues.coeff(i).imag(); in doComputeEigenvectors()
500 m_matT.coeffRef(n-1,n) = internal::imag(cc); in doComputeEigenvectors()
510 if (m_eivalues.coeff(i).imag() < 0.0) in doComputeEigenvectors()
[all …]
/external/aac/libFDK/src/arm/
Dqmf_arm.cpp478 FIXP_DBL A, B, real, imag, sta0; in qmfSynPrototypeFirSlot1_filter() local
481 imag = *--imagSlot; in qmfSynPrototypeFirSlot1_filter()
485 *sta++ = SMLAWT( sta[1], imag, B ); /* index=9...........319 */ in qmfSynPrototypeFirSlot1_filter()
487 *sta++ = SMLAWB( sta[1], imag, B ); /* index=8,18, ...318 */ in qmfSynPrototypeFirSlot1_filter()
491 *sta++ = SMLAWT( sta[1], imag, B ); /* index=7...........317 */ in qmfSynPrototypeFirSlot1_filter()
493 *sta++ = SMLAWB( sta[1], imag, B ); /* index=6...........316 */ in qmfSynPrototypeFirSlot1_filter()
497 *sta++ = SMULWT( imag, B ); /* index=5,15, ... 315 */ in qmfSynPrototypeFirSlot1_filter()
503 imag = *--imagSlot; in qmfSynPrototypeFirSlot1_filter()
507 *sta++ = SMLAWB( sta[1], imag, B ); /* index=14..........324 */ in qmfSynPrototypeFirSlot1_filter()
512 *sta++ = SMLAWT( sta[1], imag, B ); /* index=13..........323 */ in qmfSynPrototypeFirSlot1_filter()
[all …]
/external/eigen/Eigen/src/Core/
DGenericPacketMath.h218 { return Packet(imag(a),real(a)); } in pcplxflip()
318 { return std::complex<float>(real(a)*real(b) - imag(a)*imag(b), imag(a)*real(b) + real(a)*imag(b));… in pmul()
321 { return std::complex<double>(real(a)*real(b) - imag(a)*imag(b), imag(a)*real(b) + real(a)*imag(b))… in pmul()
DMathFunctions.h113 using std::imag;
114 return imag(x);
125 inline EIGEN_MATHFUNC_RETVAL(imag, Scalar) imag(const Scalar& x)
127 return EIGEN_MATHFUNC_IMPL(imag, Scalar)::run(x);
299 return real(x)*real(x) + imag(x)*imag(x);
325 return abs(real(x)) + abs(imag(x));
684 random(imag(x), imag(y)));
DGlobalFunctions.h41 EIGEN_ARRAY_DECLARE_GLOBAL_STD_UNARY(imag,scalar_imag_op) in EIGEN_ARRAY_DECLARE_GLOBAL_STD_UNARY()
87 EIGEN_ARRAY_DECLARE_GLOBAL_EIGEN_UNARY(imag,scalar_imag_op)
/external/eigen/unsupported/Eigen/src/Polynomials/
DPolynomialSolver.h75 if( internal::abs( m_roots[i].imag() ) < absImaginaryThreshold ){
127 if( internal::abs( m_roots[i].imag() ) < absImaginaryThreshold )
147 if( internal::abs( m_roots[i].imag() ) < internal::abs( m_roots[res].imag() ) ){
167 if( internal::abs( m_roots[i].imag() ) < absImaginaryThreshold )
187 if( internal::abs( m_roots[i].imag() ) < internal::abs( m_roots[res].imag() ) ){
/external/eigen/test/
Dbasicstuff.cpp146 VERIFY(internal::imag(s1)==internal::imag_ref(s1)); in basicStuffComplex()
148 internal::imag_ref(s1) = internal::imag(s2); in basicStuffComplex()
156 cm.imag() = rm2; in basicStuffComplex()
158 VERIFY_IS_APPROX(static_cast<const MatrixType&>(cm).imag(), rm2); in basicStuffComplex()
162 rm2 = cm.imag(); in basicStuffComplex()
164 VERIFY_IS_APPROX(static_cast<const MatrixType&>(cm).imag(), rm2); in basicStuffComplex()
167 VERIFY(!static_cast<const MatrixType&>(cm).imag().isZero()); in basicStuffComplex()
/external/webrtc/src/modules/audio_processing/aecm/
Daecm_core.c395 freq_signal[i].imag = - fft[j+1]; in WindowAndFFTC()
416 fft[j + 1] = -efw[i].imag; in InverseFFTAndWindowC()
419 fft[PART_LEN4 - (j - 1)] = efw[i].imag; in InverseFFTAndWindowC()
422 fft[1] = -efw[0].imag; in InverseFFTAndWindowC()
425 fft[PART_LEN2 + 1] = -efw[PART_LEN].imag; in InverseFFTAndWindowC()
1413 freq_signal[0].imag = 0; in TimeToFrequencyDomain()
1414 freq_signal[PART_LEN].imag = 0; in TimeToFrequencyDomain()
1428 freq_signal[i].imag); in TimeToFrequencyDomain()
1430 else if (freq_signal[i].imag == 0) in TimeToFrequencyDomain()
1445 tmp16no2 = WEBRTC_SPL_ABS_W16(freq_signal[i].imag); in TimeToFrequencyDomain()
[all …]
/external/stlport/src/
Dcomplex_io.cpp31 { return __os << '(' << (double)__z.real() << ',' << (double)__z.imag() << ')'; } in operator <<()
36 { return __os << '(' << __z.real() << ',' << __z.imag() << ')'; } in operator <<()
42 { return __os << '(' << __z.real() << ',' << __z.imag() << ')'; } in operator <<()
/external/aac/libFDK/src/
Dqmf.cpp199 FIXP_QMF imag = imagSlot[j]; // no_channels-1 .. 0 in qmfSynPrototypeFirSlot() local
220 sta[0] = sta[1] + FX_DBL2FX_QSS(fMultDiv2( p_flt [4] , imag )); in qmfSynPrototypeFirSlot()
222 sta[2] = sta[3] + FX_DBL2FX_QSS(fMultDiv2( p_flt [3] , imag )); in qmfSynPrototypeFirSlot()
224 sta[4] = sta[5] + FX_DBL2FX_QSS(fMultDiv2( p_flt [2] , imag )); in qmfSynPrototypeFirSlot()
226 sta[6] = sta[7] + FX_DBL2FX_QSS(fMultDiv2( p_flt [1] , imag )); in qmfSynPrototypeFirSlot()
228 sta[8] = FX_DBL2FX_QSS(fMultDiv2( p_flt [0] , imag )); in qmfSynPrototypeFirSlot()
268 FIXP_QMF imag = imagSlot[j]; // no_channels-1 .. 0 in qmfSynPrototypeFirSlot_NonSymmetric() local
285 sta[0] = sta[1] + FX_DBL2FX_QSS(fMultDiv2( p_flt [4] , imag )); in qmfSynPrototypeFirSlot_NonSymmetric()
287 sta[2] = sta[3] + FX_DBL2FX_QSS(fMultDiv2( p_flt [3] , imag )); in qmfSynPrototypeFirSlot_NonSymmetric()
290 sta[4] = sta[5] + FX_DBL2FX_QSS(fMultDiv2( p_flt [2] , imag )); in qmfSynPrototypeFirSlot_NonSymmetric()
[all …]
/external/eigen/unsupported/doc/examples/
DPolynomialSolver1.cpp44 std::complex<float> castedRoot( psolve6d.roots()[i].real(), psolve6d.roots()[i].imag() ); in main()
51 std::complex<float> castedRoot( psolve6d.roots()[5].real(), psolve6d.roots()[5].imag() ); in main()
/external/eigen/Eigen/src/plugins/
DCommonCwiseUnaryOps.h116 imag() const { return derived(); } in imag() function
172 imag() { return derived(); } in imag() function
/external/webrtc/src/modules/audio_processing/ns/
Dnsx_core_neon.c336 int16_t* ptr_imag = &inst->imag[0]; in PrepareSpectrumNeon()
395 freq_buf[1] = -inst->imag[0]; in PrepareSpectrumNeon()
401 ptr_imag = &inst->imag[1]; in PrepareSpectrumNeon()
454 freq_buf[inst->anaLen + 1] = -inst->imag[inst->anaLen2]; in PrepareSpectrumNeon()
/external/srec/srec/include/
Dsp_fft.h221 fftdata *imag; member
/external/stlport/stlport/stl/
D_complex.h70 value_type imag() const { return _M_im; } in imag() function
196 value_type imag() const { return _M_im; }
335 value_type imag() const { return _M_im; }
473 value_type imag() const { return _M_im; }
731 inline _Tp _STLP_CALL imag(const complex<_Tp>& __z)
770 { return _Tp(abs(complex<double>(double(__z.real()), double(__z.imag())))); }
774 { return _Tp(arg(complex<double>(double(__z.real()), double(__z.imag())))); }
779 return complex<_Tp>(_Tp(__tmp.real()), _Tp(__tmp.imag()));
/external/webkit/Source/WebCore/platform/audio/
DFFTFrame.cpp171 imagP[i] = static_cast<float>(c.imag()); in interpolateFrequencyComponents()
246 imagP[i] = static_cast<float>(c2.imag()); in addConstantGroupDelay()

123