Home
last modified time | relevance | path

Searched refs:Complex (Results 1 – 25 of 189) sorted by relevance

12345678

/external/python/cpython2/Demo/classes/
DComplex.py78 return Complex(*obj)
80 return Complex(obj)
84 return Complex(math.cos(phi)*r, math.sin(phi)*r)
96 class Complex: class
137 return Complex(-self.re, -self.im)
180 return Complex(self.re + other.re, self.im + other.im)
186 return Complex(self.re - other.re, self.im - other.im)
194 return Complex(self.re*other.re - self.im*other.im,
203 return Complex((self.re*other.re + self.im*other.im) / d,
220 return Complex(math.cos(phi)*r, math.sin(phi)*r)
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/
DComplex.java48 public class Complex implements FieldElement<Complex>, Serializable { class
51 public static final Complex I = new Complex(0.0, 1.0);
55 public static final Complex NaN = new Complex(Double.NaN, Double.NaN);
59 … public static final Complex INF = new Complex(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);
62 public static final Complex ONE = new Complex(1.0, 0.0);
65 public static final Complex ZERO = new Complex(0.0, 0.0);
88 public Complex(double real, double imaginary) { in Complex() method in Complex
149 public Complex add(Complex rhs) { in add()
168 public Complex conjugate() { in conjugate()
210 public Complex divide(Complex rhs) { in divide()
[all …]
DComplexFormat.java133 public static String formatComplex(Complex c) { in formatComplex()
146 public StringBuffer format(Complex complex, StringBuffer toAppendTo, in format()
190 if (obj instanceof Complex) { in format()
191 ret = format( (Complex)obj, toAppendTo, pos); in format()
193 ret = format( new Complex(((Number)obj).doubleValue(), 0.0), in format()
254 public Complex parse(String source) throws ParseException { in parse()
256 Complex result = parse(source, parsePosition); in parse()
272 public Complex parse(String source, ParsePosition pos) { in parse()
295 return new Complex(re.doubleValue(), 0.0); in parse()
328 return new Complex(re.doubleValue(), im.doubleValue() * sign); in parse()
DComplexField.java33 public class ComplexField implements Field<Complex>, Serializable {
51 public Complex getOne() { in getOne()
52 return Complex.ONE; in getOne()
56 public Complex getZero() { in getZero()
57 return Complex.ZERO; in getZero()
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/
DLaguerreSolver.java25 import org.apache.commons.math.complex.Complex;
232 Complex c[] = new Complex[coefficients.length]; in solve()
234 c[i] = new Complex(coefficients[i], 0.0); in solve()
236 Complex initial = new Complex(0.5 * (min + max), 0.0); in solve()
237 Complex z = solve(c, initial); in solve()
244 Complex[] root = solveAll(c, initial); in solve()
265 protected boolean isRootOK(double min, double max, Complex z) { in isRootOK()
286 public Complex[] solveAll(double coefficients[], double initial) throws in solveAll()
289 Complex c[] = new Complex[coefficients.length]; in solveAll()
290 Complex z = new Complex(initial, 0.0); in solveAll()
[all …]
/external/eigen/unsupported/Eigen/src/FFT/
Dei_kissfft_impl.h21 typedef std::complex<Scalar> Complex; typedef
22 std::vector<Complex> m_twiddles;
25 std::vector<Complex> m_scratchBuf;
36 m_twiddles[i] = exp( Complex(0,i*phinc) ); in make_twiddles()
64 void work( int stage,Complex * xout, const _Src * xin, size_t fstride,size_t in_stride) in work()
68 Complex * Fout_beg = xout; in work()
69 Complex * Fout_end = xout + p*m; in work()
99 void bfly2( Complex * Fout, const size_t fstride, int m) in bfly2()
102 Complex t = Fout[m+k] * m_twiddles[k*fstride]; in bfly2()
109 void bfly4( Complex * Fout, const size_t fstride, const size_t m) in bfly4()
[all …]
Dei_fftw_impl.h180 typedef std::complex<Scalar> Complex;
190 void fwd( Complex * dst,const Complex *src,int nfft)
197 void fwd( Complex * dst,const Scalar * src,int nfft)
204 void fwd2(Complex * dst, const Complex * src, int n0,int n1)
211 void inv(Complex * dst,const Complex *src,int nfft)
218 void inv( Scalar * dst,const Complex * src,int nfft)
225 void inv2(Complex * dst, const Complex * src, int n0,int n1)
/external/apache-commons-math/src/main/java/org/apache/commons/math/transform/
DFastFourierTransformer.java25 import org.apache.commons.math.complex.Complex;
73 public Complex[] transform(double f[]) in transform()
93 public Complex[] transform(UnivariateRealFunction f, in transform()
110 public Complex[] transform(Complex f[]) in transform()
126 public Complex[] transform2(double f[]) in transform2()
148 public Complex[] transform2(UnivariateRealFunction f, in transform2()
167 public Complex[] transform2(Complex f[]) in transform2()
185 public Complex[] inversetransform(double f[]) in inversetransform()
207 public Complex[] inversetransform(UnivariateRealFunction f, in inversetransform()
226 public Complex[] inversetransform(Complex f[]) in inversetransform()
[all …]
/external/llvm/test/CodeGen/X86/
Dload-slice.ll6 %class.Complex = type { float, float }
47 define void @t1(%class.Complex* nocapture %out, i64 %out_start) {
49 %arrayidx = getelementptr inbounds %class.Complex, %class.Complex* %out, i64 %out_start
50 %tmp = bitcast %class.Complex* %arrayidx to i64*
58 %arrayidx2 = getelementptr inbounds %class.Complex, %class.Complex* %out, i64 %add
59 %i.i = getelementptr inbounds %class.Complex, %class.Complex* %arrayidx2, i64 0, i32 0
63 %r.i = getelementptr inbounds %class.Complex, %class.Complex* %arrayidx2, i64 0, i32 1
67 %ref.tmp.sroa.0.0.cast = bitcast %class.Complex* %arrayidx to <2 x float>*
102 define i32 @t2(%class.Complex* nocapture %out, i64 %out_start) {
103 %arrayidx = getelementptr inbounds %class.Complex, %class.Complex* %out, i64 %out_start
[all …]
/external/v8/tools/clang/plugins/tests/
Dinline_ctor.txt2 ./inline_ctor.h:13:3: warning: [chromium-style] Complex constructor has an inlined body.
5 ./inline_ctor.h:14:3: warning: [chromium-style] Complex destructor has an inline body.
8 ./inline_ctor.h:31:25: warning: [chromium-style] Complex constructor has an inlined body.
11 ./inline_ctor.h:31:1: warning: [chromium-style] Complex destructor has an inline body.
17 ./inline_ctor.h:95:1: warning: [chromium-style] Complex class/struct needs an explicit out-of-line …
20 ./inline_ctor.h:95:1: warning: [chromium-style] Complex class/struct needs an explicit out-of-line …
Dmissing_ctor.txt2 ./missing_ctor.h:25:1: warning: [chromium-style] Complex class/struct needs an explicit out-of-line…
5 ./missing_ctor.h:25:1: warning: [chromium-style] Complex class/struct needs an explicit out-of-line…
6 ./missing_ctor.h:51:3: warning: [chromium-style] Complex constructor has an inlined body.
9 ./missing_ctor.h:53:3: warning: [chromium-style] Complex constructor has an inlined body.
12 ./missing_ctor.h:52:3: warning: [chromium-style] Complex destructor has an inline body.
Dmissing_ctor_dllexport.txt2 ./missing_ctor_dllexport.h:23:1: warning: [chromium-style] Complex class/struct needs an explicit o…
5 ./missing_ctor_dllexport.h:47:3: warning: [chromium-style] Complex constructor has an inlined body.
8 ./missing_ctor_dllexport.h:49:3: warning: [chromium-style] Complex constructor has an inlined body.
11 ./missing_ctor_dllexport.h:51:3: warning: [chromium-style] Complex constructor has an inlined body.
Dnested_class_inline_ctor.txt2 ./nested_class_inline_ctor.h:15:5: warning: [chromium-style] Complex constructor has an inlined bod…
5 ./nested_class_inline_ctor.h:16:5: warning: [chromium-style] Complex destructor has an inline body.
/external/python/cpython2/Doc/library/
Dnumbers.rst5 :synopsis: Numeric abstract base classes (Complex, Real, Integral, etc.).
24 .. class:: Complex
47 To :class:`Complex`, :class:`Real` adds the operations that work on real
54 Real also provides defaults for :func:`complex`, :attr:`~Complex.real`,
55 :attr:`~Complex.imag`, and :meth:`~Complex.conjugate`.
108 those. You can add ``MyFoo`` between :class:`Complex` and
111 class MyFoo(Complex): ...
143 elif isinstance(other, Complex):
150 of :class:`Complex`. I'll refer to all of the above code that doesn't
153 of :class:`Complex` (``a : A <: Complex``), and ``b : B <:
[all …]
/external/python/cpython3/Doc/library/
Dnumbers.rst5 :synopsis: Numeric abstract base classes (Complex, Real, Integral, etc.).
25 .. class:: Complex
48 To :class:`Complex`, :class:`Real` adds the operations that work on real
55 Real also provides defaults for :func:`complex`, :attr:`~Complex.real`,
56 :attr:`~Complex.imag`, and :meth:`~Complex.conjugate`.
109 those. You can add ``MyFoo`` between :class:`Complex` and
112 class MyFoo(Complex): ...
146 elif isinstance(other, Complex):
153 of :class:`Complex`. I'll refer to all of the above code that doesn't
156 of :class:`Complex` (``a : A <: Complex``), and ``b : B <:
[all …]
/external/llvm/test/CodeGen/AArch64/
Darm64-dagcombiner-load-slicing.ll4 %class.Complex = type { float, float }
15 define void @test(%class.Complex* nocapture %out, i64 %out_start) {
17 %arrayidx = getelementptr inbounds %class.Complex, %class.Complex* %out, i64 %out_start
18 %0 = bitcast %class.Complex* %arrayidx to i64*
26 %arrayidx2 = getelementptr inbounds %class.Complex, %class.Complex* %out, i64 %add
27 %i.i = getelementptr inbounds %class.Complex, %class.Complex* %arrayidx2, i64 0, i32 0
31 %r.i = getelementptr inbounds %class.Complex, %class.Complex* %arrayidx2, i64 0, i32 1
35 %ref.tmp.sroa.0.0.cast = bitcast %class.Complex* %arrayidx to <2 x float>*
/external/eigen/unsupported/Eigen/
DFFT165 typedef typename impl_type::Complex Complex;
187 void fwd( Complex * dst, const Scalar * src, Index nfft)
195 void fwd( Complex * dst, const Complex * src, Index nfft)
202 void fwd2(Complex * dst, const Complex * src, int n0,int n1)
210 void fwd( std::vector<Complex> & dst, const std::vector<_Input> & src)
228 EIGEN_STATIC_ASSERT((internal::is_same<dst_type, Complex>::value),
272 void inv( Complex * dst, const Complex * src, Index nfft)
280 void inv( Scalar * dst, const Complex * src, Index nfft)
297 EIGEN_STATIC_ASSERT((internal::is_same<src_type, Complex>::value),
349 void inv( std::vector<_Output> & dst, const std::vector<Complex> & src,Index nfft=-1)
[all …]
/external/python/cpython2/Lib/test/
Dtest_abstract_numbers.py5 from numbers import Complex, Real, Rational, Integral
11 self.assertTrue(issubclass(int, Complex))
21 self.assertTrue(issubclass(long, Complex))
39 self.assertTrue(issubclass(complex, Complex))
/external/eigen/unsupported/test/
DFFTW.cpp80 typedef typename FFT<T>::Complex Complex; in test_scalar_generic() typedef
83 typedef typename VectorType<Container,Complex>::type ComplexVector; in test_scalar_generic()
143 typedef typename FFT<T>::Complex Complex; in test_complex_generic() typedef
144 typedef typename VectorType<Container,Complex>::type ComplexVector; in test_complex_generic()
152 inbuf[k]= Complex( (T)(rand()/(double)RAND_MAX - .5), (T)(rand()/(double)RAND_MAX - .5) ); in test_complex_generic()
/external/llvm/test/Transforms/SLPVectorizer/ARM/
Dsroa.ll5 %class.Complex = type { double, double }
15 define void @SROAed(%class.Complex* noalias nocapture sret %agg.result, [4 x i32] %a.coerce, [4 x i…
47 %re.i.i = getelementptr inbounds %class.Complex, %class.Complex* %agg.result, i32 0, i32 0
49 %im.i.i = getelementptr inbounds %class.Complex, %class.Complex* %agg.result, i32 0, i32 1
/external/clang/unittests/Tooling/
DQualTypeNamesTest.cpp168 TypeNameVisitor Complex; in TEST() local
169 Complex.ExpectedQualTypeNames["CheckTX"] = "B::TX"; in TEST()
170 Complex.runOver( in TEST()
/external/llvm/test/MC/Disassembler/Hexagon/
Dxtype_complex.txt4 # Complex add/sub halfwords
14 # Complex add/sub words
20 # Complex multiply
46 # Complex multiply real or imaginary
56 # Complex multiply with round and pack
66 # Complex multiply 32x16
/external/python/cpython3/Lib/test/
Dtest_abstract_numbers.py6 from numbers import Complex, Real, Rational, Integral
11 self.assertTrue(issubclass(int, Complex))
31 self.assertTrue(issubclass(complex, Complex))
/external/eigen/test/
Deigensolver_generic.cpp27 typedef typename std::complex<typename NumTraits<typename MatrixType::Scalar>::Real> Complex; in eigensolver() typedef
36 …VERIFY_IS_APPROX((symmA.template cast<Complex>()) * (ei0.pseudoEigenvectors().template cast<Comple… in eigensolver()
37 (ei0.pseudoEigenvectors().template cast<Complex>()) * (ei0.eigenvalues().asDiagonal())); in eigensolver()
42 VERIFY_IS_APPROX(a.template cast<Complex>() * ei1.eigenvectors(), in eigensolver()
/external/golang-protobuf/jsonpb/jsonpb_test_proto/
Dtest_objects.pb.go587 type Complex struct { struct
593 func (m *Complex) Reset() { *m = Complex{} } argument
594 func (m *Complex) String() string { return proto.CompactTextString(m) }
595 func (*Complex) ProtoMessage() {}
596 func (*Complex) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
602 func (*Complex) ExtensionRangeArray() []proto.ExtensionRange {
606 func (m *Complex) GetImaginary() float64 {
615 ExtensionType: (*Complex)(nil),
768 proto.RegisterType((*Complex)(nil), "jsonpb.Complex")

12345678