CPPLapack
Public Member Functions | Public Attributes
zhecomplex Class Reference

(DO NOT USE) Complex-double Class for Hermitian matrices More...

#include <zhecomplex.hpp>

List of all members.

Public Member Functions

 zhecomplex (const long &, const long &, comple &)
zhecomplexoperator= (const comple &)

Public Attributes

long i
long j
comple & v

Detailed Description

(DO NOT USE) Complex-double Class for Hermitian matrices

Definition at line 3 of file zhecomplex.hpp.


Constructor & Destructor Documentation

zhecomplex::zhecomplex ( const long &  _i,
const long &  _j,
comple &  _v 
) [inline]

constructor

Definition at line 29 of file zhecomplex.hpp.

References i, and j.

  : comple( _i < _j ? std::conj( _v ) : _v ), 
    v( _v )
{VERBOSE_REPORT;
  i = _i;
  j = _j;
}

Member Function Documentation

zhecomplex & zhecomplex::operator= ( const comple &  _v) [inline]

operator=

Definition at line 43 of file zhecomplex.hpp.

References conj(), i, j, and v.

{VERBOSE_REPORT;
#ifdef  CPPL_DEBUG
  if( i==j && std::fabs(_v.imag()) > DBL_MIN ){
    WARNING_REPORT;
    std::cerr << "Diagonal components of a hermitian matrix have to be real numbers." << std::endl
              << "Your input to the (" << i << "," << j << ") element was a complex number, " << _v << "." << std::endl;
  }
#endif//CPPL_DEBUG
  
  comple::operator=( _v );
  v = ( i < j ? std::conj( _v ) : _v );
  return *this;
}

Member Data Documentation

Definition at line 9 of file zhecomplex.hpp.

Referenced by operator=(), and zhecomplex().

Definition at line 9 of file zhecomplex.hpp.

Referenced by operator=(), and zhecomplex().

comple& zhecomplex::v

Definition at line 10 of file zhecomplex.hpp.

Referenced by operator=().


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