numerix_doc 0.4
complex< C > Class Template Reference

#include <complex.hpp>

List of all members.

Public Member Functions

Friends


Detailed Description

template<typename C>
class mmx::complex< C >

Definition at line 34 of file complex.hpp.


Constructor & Destructor Documentation

complex ( ) [inline]

Definition at line 40 of file complex.hpp.

{}
complex ( const format< C > &  fm) [inline]

Definition at line 41 of file complex.hpp.

                                      :
    re (get_sample (fm)), im (get_sample (fm)) {}
complex ( const T &  x) [inline]

Definition at line 43 of file complex.hpp.

                                                  :
    re (as<C> (x)), im (0) {}
complex ( const complex< T > &  z) [inline]

Definition at line 45 of file complex.hpp.

                                                           :
    re (Re (z)), im (Im (z)) {}
complex ( const XT &  x,
const YT &  y 
) [inline]

Definition at line 48 of file complex.hpp.

                                    :
    re (x), im (y) {}

Member Function Documentation

complex< C > & operator*= ( const C x) [inline]

Definition at line 374 of file complex.hpp.

                                {
  re *= x;
  im *= x;
  return *this;
}
complex< C > & operator*= ( const complex< C > &  z) [inline]

Definition at line 388 of file complex.hpp.

References mmx::C.

                                      {
  C RE= re, zRE= z.re;
  re= re * z.re - im * z.im;
  im= RE * z.im + im * zRE;
  return *this;
}
complex< C > & operator+= ( const complex< C > &  z) [inline]

Definition at line 360 of file complex.hpp.

                                      {
  re += z.re;
  im += z.im;
  return *this;
}
complex< C > & operator-= ( const complex< C > &  z) [inline]

Definition at line 367 of file complex.hpp.

                                      {
  re -= z.re;
  im -= z.im;
  return *this;
}
complex< C > & operator/= ( const C x) [inline]

Definition at line 381 of file complex.hpp.

                                {
  re /= x;
  im /= x;
  return *this;
}
complex< C > & operator/= ( const complex< C > &  z) [inline]

Definition at line 396 of file complex.hpp.

References mmx::C, and mmx::norm().

                                      {
  C RE= re;
  C a = norm (z);
  re= (re * z.re + im * z.im) / a;
  im= (im * z.re - RE * z.im) / a;
  return *this;
}
complex< C > & operator<<= ( const xint &  shift) [inline]

Definition at line 629 of file complex.hpp.

                                        {
  incexp2_assign (re, shift);
  incexp2_assign (im, shift);
  return *this;
}
complex< C > & operator>>= ( const xint &  shift) [inline]

Definition at line 636 of file complex.hpp.

                                        {
  decexp2_assign (re, shift);
  decexp2_assign (im, shift);
  return *this;
}

Friends And Related Function Documentation

C Re LESSGTR ( const complex< C > &  z) [friend]
C& Im LESSGTR ( complex< C > &  z) [friend]
C& Re LESSGTR ( complex< C > &  z) [friend]
C Im LESSGTR ( const complex< C > &  z) [friend]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines