Index

C++ Code Documentation

template <class Real> math::complex4

File: BASE/math/Complex4.H

2-by-2 matrix of std::complex numbers

public:
  • complex4();
    void constructor
  • complex4( complex4<Real> const & );
    copy constructor
  • ~complex4();
    destructor
  • complex4<Real> &operator=( complex4<Real> const & );
    assignment operator
  • inline void clear();
    *this = 0
  • inline void zero();
  • inline void identity();
  • complex2<Real> &col1();
    data access
  • complex2<Real> const &col1() const;
  • complex2<Real> &col2();
  • complex2<Real> const &col2() const;
  • complex2<Real> &operator[](uint i);
  • complex2<Real> const &operator[](uint i) const;
  • inline void add( complex4<Real> const &A, complex4<Real> const &b );
    *this = a + b
  • inline void add( complex4<Real> const &a );
    *this += a
  • inline void sub( complex4<Real> const &a, complex4<Real> const &b );
    *this = a - b
  • inline void sub( complex4<Real> const &a );
    *this -= a
  • inline void mul( std::complex<Real> const &t );
    *this *= t
  • inline void mul( std::complex<Real> const &t, complex4<Real> const &a );
    *this = t * b
  • inline void mul( complex4<Real> const &A, complex4<Real> const &b );
    *this = a * b
  • inline void mul_add( complex4<Real> const &a, std::complex<Real> const &r, complex4<Real> const &b );
    *this = a + r * b
  • inline void mul_add( std::complex<Real> const &r, complex4<Real> const &b );
    *this += r * b
  • inline void transpose( complex4<Real> const &a );
    *this = transpose(a)
  • inline void transpose();
    *this = transpose(*this)
  • inline void inv( complex4<Real> const &a );
    *this = inv(a)
  • inline void inv();
    *this = inv(*this)
  • inline void det( std::complex<Real> &t ) const;
    t = det(*this)
  • inline void norm( Real &t ) const;
    t = norm(*this) (L^2 norm)
  • friend std::ostream &operator<< NULL_TMPL_ARGS ( std::ostream &, complex4<Real> const & );
protected:
private:
  • complex2<Real> _col1;
    data
  • complex2<Real> _col2;


template <class Real> math::complex4 GANG