Complex 9 apps/fft/fft_generator.cpp enum class FFTNumberType { Real, Complex }; Complex 12 apps/fft/fft_generator.cpp { "complex", FFTNumberType::Complex } }; Complex 57 test/correctness/side_effects.cpp Complex operator+(const Complex &a, const Complex &b) { Complex 58 test/correctness/side_effects.cpp return Complex(a.real() + b.real(), Complex 62 test/correctness/side_effects.cpp Complex operator-(const Complex &a, const Complex &b) { Complex 63 test/correctness/side_effects.cpp return Complex(a.real() - b.real(), Complex 67 test/correctness/side_effects.cpp Complex operator*(const Complex &a, const Complex &b) { Complex 68 test/correctness/side_effects.cpp return Complex(a.real() * b.real() - a.imag() * b.imag(), Complex 72 test/correctness/side_effects.cpp Complex conjugate(const Complex &a) { Complex 73 test/correctness/side_effects.cpp return Complex(a.real(), -a.imag()); Complex 76 test/correctness/side_effects.cpp Expr magnitude(Complex a) { Complex 87 test/correctness/side_effects.cpp Complex initial(x/20.0f, y/8.0f); Complex 89 test/correctness/side_effects.cpp mandelbrot(x, y, z) = Complex(0.0f, 0.0f); Complex 91 test/correctness/side_effects.cpp Complex current = mandelbrot(x, y, t-1); Complex 21 test/generator/mandelbrot_generator.cpp Complex operator+(const Complex &a, const Complex &b) { Complex 22 test/generator/mandelbrot_generator.cpp return Complex(a.real() + b.real(), a.imag() + b.imag()); Complex 25 test/generator/mandelbrot_generator.cpp Complex operator*(const Complex &a, const Complex &b) { Complex 26 test/generator/mandelbrot_generator.cpp return Complex(a.real() * b.real() - a.imag() * b.imag(), Complex 30 test/generator/mandelbrot_generator.cpp Complex conjugate(const Complex &a) { return Complex(a.real(), -a.imag()); } Complex 32 test/generator/mandelbrot_generator.cpp Expr magnitude(Complex a) { return (a * conjugate(a)).real(); } Complex 49 test/generator/mandelbrot_generator.cpp Complex initial(lerp(x_min, x_max, cast<float>(x) / w), Complex 51 test/generator/mandelbrot_generator.cpp Complex c(c_real, c_imag); Complex 55 test/generator/mandelbrot_generator.cpp Complex current = mandelbrot(x, y, t - 1); Complex 21 test/generator/memory_profiler_mandelbrot_generator.cpp Complex operator+(const Complex &a, const Complex &b) { Complex 22 test/generator/memory_profiler_mandelbrot_generator.cpp return Complex(a.real() + b.real(), a.imag() + b.imag()); Complex 25 test/generator/memory_profiler_mandelbrot_generator.cpp Complex operator*(const Complex &a, const Complex &b) { Complex 26 test/generator/memory_profiler_mandelbrot_generator.cpp return Complex(a.real() * b.real() - a.imag() * b.imag(), Complex 30 test/generator/memory_profiler_mandelbrot_generator.cpp Complex conjugate(const Complex &a) { return Complex(a.real(), -a.imag()); } Complex 32 test/generator/memory_profiler_mandelbrot_generator.cpp Expr magnitude(Complex a) { return (a * conjugate(a)).real(); } Complex 51 test/generator/memory_profiler_mandelbrot_generator.cpp Complex initial(lerp(x_min, x_max, cast<float>(x) / w), Complex 53 test/generator/memory_profiler_mandelbrot_generator.cpp Complex c(c_real, c_imag); Complex 58 test/generator/memory_profiler_mandelbrot_generator.cpp Complex current = mandelbrot(x, y, t - 1); Complex 206 tutorial/lesson_13_tuples.cpp Complex(Tuple t) : real(t[0]), imag(t[1]) {} Complex 209 tutorial/lesson_13_tuples.cpp Complex(Expr r, Expr i) : real(r), imag(i) {} Complex 212 tutorial/lesson_13_tuples.cpp Complex(FuncRef t) : Complex(Tuple(t)) {} Complex 220 tutorial/lesson_13_tuples.cpp Complex operator+(const Complex &other) const { Complex 225 tutorial/lesson_13_tuples.cpp Complex operator*(const Complex &other) const { Complex 244 tutorial/lesson_13_tuples.cpp Complex initial(x/15.0f - 2.5f, y/6.0f - 2.0f); Complex 248 tutorial/lesson_13_tuples.cpp mandelbrot(x, y, t) = Complex(0.0f, 0.0f); Complex 252 tutorial/lesson_13_tuples.cpp Complex current = mandelbrot(x, y, r-1); Complex 266 tutorial/lesson_13_tuples.cpp Expr escape_condition = Complex(mandelbrot(x, y, r)).magnitude() < 16.0f;