Specialization of std::complex over Intel(R) ArBB scalar types. More...
Public Types | |
typedef arbb::scalar< T > | value_type |
The type used to represent the real and imaginary values of the complex number. | |
Public Member Functions | |
complex () | |
Default constructor. | |
complex (const complex &other) | |
Copy constructor. | |
complex (const value_type &real) | |
Equivalent to complex(real, 0). | |
complex (const value_type &real, const value_type &imag) | |
Constructs a complex number with the given real and imaginary values. | |
complex (typename arbb::uncaptured< value_type >::type real, typename arbb::uncaptured< value_type >::type imag) | |
Constructs a complex number with the given real and imaginary values. | |
template<arbb_scalar_type_t U> | |
complex (const complex< arbb::scalar< U > > &other) | |
Casts the real and imaginary values from other to value_type. | |
complex & | operator= (const complex &other) |
Assignment operator. | |
complex & | operator+= (const complex &other) |
Adds other using complex addition. | |
complex & | operator-= (const complex &other) |
Subtracts other using complex subtraction. | |
complex & | operator*= (const complex &other) |
Multiplies with other using complex multiplication. | |
complex & | operator/= (const complex &other) |
Divides by other using complex division. | |
value_type | real () const |
Returns the real component of the complex number. | |
value_type | imag () const |
Returns the imaginary component of the complex number. |
Specialization of std::complex over Intel(R) ArBB scalar types.
Definition at line 33 of file complex.hpp.
typedef arbb ::scalar<T> std::complex< arbb::scalar< T > >::value_type |
The type used to represent the real and imaginary values of the complex number.
Definition at line 37 of file complex.hpp.
std::complex< arbb::scalar< T > >::complex | ( | ) |
Default constructor.
std::complex< arbb::scalar< T > >::complex | ( | const complex< arbb::scalar< T > > & | other | ) |
Copy constructor.
std::complex< arbb::scalar< T > >::complex | ( | const value_type & | real | ) |
Equivalent to complex(real, 0).
std::complex< arbb::scalar< T > >::complex | ( | const value_type & | real, | |
const value_type & | imag | |||
) |
Constructs a complex number with the given real and imaginary values.
std::complex< arbb::scalar< T > >::complex | ( | typename arbb::uncaptured< value_type >::type | real, | |
typename arbb::uncaptured< value_type >::type | imag | |||
) |
Constructs a complex number with the given real and imaginary values.
std::complex< arbb::scalar< T > >::complex | ( | const complex< arbb::scalar< U > > & | other | ) | [inline, explicit] |
Casts the real and imaginary values from other
to value_type.
complex& std::complex< arbb::scalar< T > >::operator= | ( | const complex< arbb::scalar< T > > & | other | ) |
Assignment operator.
complex& std::complex< arbb::scalar< T > >::operator+= | ( | const complex< arbb::scalar< T > > & | other | ) |
Adds other
using complex addition.
complex& std::complex< arbb::scalar< T > >::operator-= | ( | const complex< arbb::scalar< T > > & | other | ) |
Subtracts other
using complex subtraction.
complex& std::complex< arbb::scalar< T > >::operator*= | ( | const complex< arbb::scalar< T > > & | other | ) |
Multiplies with other
using complex multiplication.
complex& std::complex< arbb::scalar< T > >::operator/= | ( | const complex< arbb::scalar< T > > & | other | ) |
Divides by other
using complex division.
value_type std::complex< arbb::scalar< T > >::real | ( | ) | const |
Returns the real component of the complex number.
value_type std::complex< arbb::scalar< T > >::imag | ( | ) | const |
Returns the imaginary component of the complex number.
Copyright © 2010, Intel Corporation. All rights reserved.