zgematrix Class Reference

Complex Double-precision General Dence Matrix Class. More...

#include <zgematrix.hpp>

List of all members.

Public Member Functions

 zgematrix ()
 zgematrix (const zgematrix &)
 zgematrix (const _zgematrix &)
 zgematrix (const zgbmatrix &)
 zgematrix (const _zgbmatrix &)
 zgematrix (const zhematrix &)
 zgematrix (const _zhematrix &)
 zgematrix (const zssmatrix &)
 zgematrix (const _zssmatrix &)
 zgematrix (const long &, const long &)
 zgematrix (const char *)
 ~zgematrix ()
std::complex< double > & operator() (const long &, const long &)
std::complex< double > operator() (const long &, const long &) const
void set (const long &, const long &, const std::complex< double > &) const
void write (const char *) const
void read (const char *)
void clear ()
void zero ()
void identity ()
void chsign ()
void copy (const zgematrix &)
void shallow_copy (const _zgematrix &)
void resize (const long &, const long &)
long zgesv (zgematrix &)
long zgesv (zcovector &)
long zgels (zgematrix &)
long zgels (zcovector &)
long zgels (zgematrix &, drovector &)
long zgels (zcovector &, double &)
long zgelss (zcovector &, dcovector &, long &, const double)
long zgelss (zgematrix &, dcovector &, long &, const double)
long zgeev (std::vector< std::complex< double > > &)
long zgeev (std::vector< std::complex< double > > &, std::vector< zcovector > &)
long zgeev (std::vector< std::complex< double > > &, std::vector< zrovector > &)
long zgesvd (dcovector &, zgematrix &, zgematrix &)
zgematrixoperator= (const zgematrix &)
zgematrixoperator+= (const zgematrix &)
zgematrixoperator-= (const zgematrix &)
zgematrixoperator*= (const zgematrix &)
zgematrixoperator= (const _zgematrix &)
zgematrixoperator+= (const _zgematrix &)
zgematrixoperator-= (const _zgematrix &)
zgematrixoperator*= (const _zgematrix &)
zgematrixoperator= (const zgbmatrix &)
zgematrixoperator+= (const zgbmatrix &)
zgematrixoperator-= (const zgbmatrix &)
zgematrixoperator*= (const zgbmatrix &)
zgematrixoperator= (const _zgbmatrix &)
zgematrixoperator+= (const _zgbmatrix &)
zgematrixoperator-= (const _zgbmatrix &)
zgematrixoperator*= (const _zgbmatrix &)
zgematrixoperator= (const zhematrix &mat)
zgematrixoperator+= (const zhematrix &mat)
zgematrixoperator-= (const zhematrix &mat)
zgematrixoperator*= (const zhematrix &mat)
zgematrixoperator= (const _zhematrix &mat)
zgematrixoperator+= (const _zhematrix &mat)
zgematrixoperator-= (const _zhematrix &mat)
zgematrixoperator*= (const _zhematrix &mat)
zgematrixoperator*= (const double &)
zgematrixoperator/= (const double &)
zgematrixoperator*= (const std::complex< double > &)
zgematrixoperator/= (const std::complex< double > &)

Public Attributes

long const & m
 matrix row size (readable)
long const & n
 matrix column size (readable)
std::complex< double > *const & array
 1D array to store matrix data (readable)
std::complex< double > **const & darray
 array of pointers of column head addresses (readable)

Friends

class _zgematrix
class zgbmatrix
class _zgbmatrix
class zhematrix
class _zhematrix
class zssmatrix
class _zssmatrix
class zcovector
class _zcovector
class zrovector
class _zrovector
std::ostream & operator<< (std::ostream &, const zgematrix &)
void swap (zgematrix &, zgematrix &)
_zgematrix _ (zgematrix &)
_zgematrix t (const zgematrix &)
_zgematrix i (const zgematrix &)
_zgematrix conj (const zgematrix &)
_zgematrix conjt (const zgematrix &)
void idamax (long &, long &, const zgematrix &)
std::complex< double > damax (const zgematrix &)
const zgematrixoperator+ (const zgematrix &)
_zgematrix operator- (const zgematrix &)
_zgematrix operator+ (const zgematrix &, const zgematrix &)
_zgematrix operator+ (const zgematrix &, const _zgematrix &)
_zgematrix operator+ (const _zgematrix &, const zgematrix &)
_zgematrix operator+ (const zgematrix &, const zgbmatrix &)
_zgematrix operator+ (const zgematrix &, const _zgbmatrix &)
_zgematrix operator+ (const zgbmatrix &, const zgematrix &)
_zgematrix operator+ (const _zgbmatrix &, const zgematrix &)
_zgematrix operator+ (const zgematrix &, const zhematrix &)
_zgematrix operator+ (const zgematrix &, const _zhematrix &)
_zgematrix operator+ (const zhematrix &, const zgematrix &)
_zgematrix operator+ (const _zhematrix &, const zgematrix &)
_zgematrix operator+ (const zgematrix &, const zssmatrix &)
_zgematrix operator+ (const zgematrix &, const _zssmatrix &)
_zgematrix operator+ (const zssmatrix &, const zgematrix &)
_zgematrix operator+ (const _zssmatrix &, const zgematrix &)
_zgematrix operator- (const zgematrix &, const zgematrix &)
_zgematrix operator- (const zgematrix &, const _zgematrix &)
_zgematrix operator- (const _zgematrix &, const zgematrix &)
_zgematrix operator- (const zgematrix &, const zgbmatrix &)
_zgematrix operator- (const zgematrix &, const _zgbmatrix &)
_zgematrix operator- (const zgbmatrix &, const zgematrix &)
_zgematrix operator- (const _zgbmatrix &, const zgematrix &)
_zgematrix operator- (const zgematrix &, const zhematrix &)
_zgematrix operator- (const zgematrix &, const _zhematrix &)
_zgematrix operator- (const zhematrix &, const zgematrix &)
_zgematrix operator- (const _zhematrix &, const zgematrix &)
_zgematrix operator- (const zgematrix &, const zssmatrix &)
_zgematrix operator- (const zgematrix &, const _zssmatrix &)
_zgematrix operator- (const zssmatrix &, const zgematrix &)
_zgematrix operator- (const _zssmatrix &, const zgematrix &)
_zgematrix operator* (const zgematrix &, const zgematrix &)
_zgematrix operator* (const zgematrix &, const _zgematrix &)
_zgematrix operator* (const _zgematrix &, const zgematrix &)
_zgematrix operator* (const zgematrix &, const zgbmatrix &)
_zgematrix operator* (const zgematrix &, const _zgbmatrix &)
_zgematrix operator* (const zgbmatrix &, const zgematrix &)
_zgematrix operator* (const _zgbmatrix &, const zgematrix &)
_zgematrix operator* (const zhematrix &, const zgematrix &)
_zgematrix operator* (const _zhematrix &, const zgematrix &)
_zgematrix operator* (const zgematrix &, const zhematrix &)
_zgematrix operator* (const zgematrix &, const _zhematrix &)
_zgematrix operator* (const zssmatrix &, const zgematrix &)
_zgematrix operator* (const _zssmatrix &, const zgematrix &)
_zgematrix operator* (const zgematrix &, const zssmatrix &)
_zgematrix operator* (const zgematrix &, const _zssmatrix &)
_zcovector operator* (const zgematrix &, const zcovector &)
_zcovector operator* (const zgematrix &, const _zcovector &)
_zrovector operator* (const zrovector &, const zgematrix &)
_zrovector operator* (const _zrovector &, const zgematrix &)
_zgematrix operator* (const zgematrix &, const double &)
_zgematrix operator* (const double &, const zgematrix &)
_zgematrix operator* (const zgematrix &, const std::complex< double > &)
_zgematrix operator* (const std::complex< double > &, const zgematrix &)
_zgematrix operator/ (const zgematrix &, const double &)
_zgematrix operator/ (const zgematrix &, const std::complex< double > &)


Detailed Description

Complex Double-precision General Dence Matrix Class.

Definition at line 3 of file zgematrix.hpp.


Constructor & Destructor Documentation

zgematrix::zgematrix (  )  [inline]

zgematrix constructor without arguments

Definition at line 3 of file zgematrix-constructor.hpp.

References _zrovector::Array.

zgematrix::zgematrix ( const zgematrix mat  )  [inline]

zgematrix copy constructor

Definition at line 26 of file zgematrix-constructor.hpp.

References _zrovector::Array, i, and zcopy_.

zgematrix::zgematrix ( const _zgematrix mat  )  [inline]

zgematrix::zgematrix ( const zgbmatrix mat  )  [inline]

zgematrix constructor to cast zgbmatrix

Definition at line 74 of file zgematrix-constructor.hpp.

References _zrovector::Array, i, CPPL::max(), CPPL::min(), operator()(), and zero().

zgematrix::zgematrix ( const _zgbmatrix mat  )  [inline]

zgematrix::zgematrix ( const zhematrix mat  )  [inline]

zgematrix constructor to cast zhematrix

Definition at line 137 of file zgematrix-constructor.hpp.

References _zrovector::Array, i, operator()(), and zero().

zgematrix::zgematrix ( const _zhematrix mat  )  [inline]

zgematrix::zgematrix ( const zssmatrix mat  )  [inline]

zgematrix constructor to cast zssmatrix

Definition at line 197 of file zgematrix-constructor.hpp.

References _zrovector::Array, i, operator()(), and zero().

zgematrix::zgematrix ( const _zssmatrix mat  )  [inline]

zgematrix::zgematrix ( const long &  _m,
const long &  _n 
) [inline]

zgematrix constructor with size specification

Definition at line 257 of file zgematrix-constructor.hpp.

References _zrovector::Array, and i.

zgematrix::zgematrix ( const char *  filename  )  [inline]

zgematrix constructor with filename

Definition at line 290 of file zgematrix-constructor.hpp.

References _zrovector::Array, and read().

zgematrix::~zgematrix (  )  [inline]

zgematrix destructor

Definition at line 316 of file zgematrix-constructor.hpp.

References _zrovector::Array.


Member Function Documentation

void zgematrix::chsign (  )  [inline]

change sign(+/-) of the matrix

Definition at line 60 of file zgematrix-misc.hpp.

References _zrovector::Array, and i.

void zgematrix::clear (  )  [inline]

clear all the matrix data and set the sizes 0

Definition at line 3 of file zgematrix-misc.hpp.

References _zrovector::Array.

Referenced by operator=(), zgels(), and zgelss().

void zgematrix::copy ( const zgematrix mat  )  [inline]

make a deep copy of the matrix

Definition at line 72 of file zgematrix-misc.hpp.

References _zrovector::Array, i, and zcopy_.

Referenced by operator=().

void zgematrix::identity (  )  [inline]

change the matrix into an identity matrix

Definition at line 38 of file zgematrix-misc.hpp.

References _zrovector::Array, i, and operator()().

Referenced by i().

std::complex< double > zgematrix::operator() ( const long &  i,
const long &  j 
) const [inline]

operator() for const object

Definition at line 26 of file zgematrix-io.hpp.

std::complex< double > & zgematrix::operator() ( const long &  i,
const long &  j 
) [inline]

operator() for non-const object

Definition at line 3 of file zgematrix-io.hpp.

Referenced by identity(), operator*=(), operator+=(), operator-=(), operator=(), read(), write(), and zgematrix().

zgematrix & zgematrix::operator*= ( const std::complex< double > &  d  )  [inline]

zgematrix*=stdcomplex<double> operator

Definition at line 3 of file zgematrix-complex.hpp.

References _zrovector::Array, and zscal_.

zgematrix & zgematrix::operator*= ( const double &  d  )  [inline]

zgematrix*=double operator

Definition at line 3 of file zgematrix-double.hpp.

References _zrovector::Array, and zdscal_.

zgematrix & zgematrix::operator*= ( const _zhematrix mat  )  [inline]

zgematrix*=_zhematrix operator

Definition at line 83 of file zgematrix-_zhematrix.hpp.

References array, _zrovector::Array, _zhematrix::Array, _zhematrix::destroy(), m, _zhematrix::N, swap, and zhemm_.

zgematrix & zgematrix::operator*= ( const zhematrix mat  )  [inline]

zgematrix*=zhematrix operator

Definition at line 76 of file zgematrix-zhematrix.hpp.

References array, _zrovector::Array, m, swap, and zhemm_.

zgematrix & zgematrix::operator*= ( const _zgbmatrix mat  )  [inline]

zgematrix*=_zgbmatrix operator

Definition at line 85 of file zgematrix-_zgbmatrix.hpp.

References _zgbmatrix::destroy(), i, _zgbmatrix::KL, _zgbmatrix::KU, m, _zgbmatrix::M, CPPL::max(), CPPL::min(), n, _zgbmatrix::N, operator()(), swap, and zero().

zgematrix & zgematrix::operator*= ( const zgbmatrix mat  )  [inline]

zgematrix*=zgbmatrix operator

Definition at line 82 of file zgematrix-zgbmatrix.hpp.

References i, m, CPPL::max(), CPPL::min(), n, operator()(), swap, and zero().

zgematrix & zgematrix::operator*= ( const _zgematrix mat  )  [inline]

zgematrix*=_zgematrix operator

Definition at line 70 of file zgematrix-_zgematrix.hpp.

References array, _zgematrix::Array, _zrovector::Array, _zgematrix::destroy(), _zgematrix::M, _zgematrix::N, swap, and zgemm_.

zgematrix & zgematrix::operator*= ( const zgematrix mat  )  [inline]

zgematrix operator*=

Definition at line 68 of file zgematrix-zgematrix.hpp.

References array, _zrovector::Array, swap, and zgemm_.

zgematrix & zgematrix::operator+= ( const _zhematrix mat  )  [inline]

zgematrix+=_zhematrix operator

Definition at line 29 of file zgematrix-_zhematrix.hpp.

References _zhematrix::destroy(), i, _zhematrix::N, and operator()().

zgematrix & zgematrix::operator+= ( const zhematrix mat  )  [inline]

zgematrix+=zhematrix operator

Definition at line 24 of file zgematrix-zhematrix.hpp.

References i, and operator()().

zgematrix & zgematrix::operator+= ( const _zgbmatrix mat  )  [inline]

zgematrix+=_zgbmatrix operator

Definition at line 28 of file zgematrix-_zgbmatrix.hpp.

References _zgbmatrix::destroy(), i, _zgbmatrix::KL, _zgbmatrix::KU, _zgbmatrix::M, CPPL::max(), CPPL::min(), _zgbmatrix::N, and operator()().

zgematrix & zgematrix::operator+= ( const zgbmatrix mat  )  [inline]

zgematrix+=zgbmatrix operator

Definition at line 27 of file zgematrix-zgbmatrix.hpp.

References i, CPPL::max(), CPPL::min(), and operator()().

zgematrix & zgematrix::operator+= ( const _zgematrix mat  )  [inline]

zgematrix+=_zgematrix operator

Definition at line 20 of file zgematrix-_zgematrix.hpp.

References _zgematrix::Array, _zrovector::Array, _zgematrix::destroy(), i, _zgematrix::M, and _zgematrix::N.

zgematrix & zgematrix::operator+= ( const zgematrix mat  )  [inline]

zgematrix+=zgematrix operator

Definition at line 22 of file zgematrix-zgematrix.hpp.

References _zrovector::Array, and i.

zgematrix & zgematrix::operator-= ( const _zhematrix mat  )  [inline]

zgematrix-=_zhematrix operator

Definition at line 56 of file zgematrix-_zhematrix.hpp.

References _zhematrix::destroy(), i, _zhematrix::N, and operator()().

zgematrix & zgematrix::operator-= ( const zhematrix mat  )  [inline]

zgematrix-=zhematrix operator

Definition at line 50 of file zgematrix-zhematrix.hpp.

References i, and operator()().

zgematrix & zgematrix::operator-= ( const _zgbmatrix mat  )  [inline]

zgematrix-=_zgbmatrix operator

Definition at line 57 of file zgematrix-_zgbmatrix.hpp.

References _zgbmatrix::destroy(), i, _zgbmatrix::KL, _zgbmatrix::KU, _zgbmatrix::M, CPPL::max(), CPPL::min(), _zgbmatrix::N, and operator()().

zgematrix & zgematrix::operator-= ( const zgbmatrix mat  )  [inline]

zgematrix-=zgbmatrix operator

Definition at line 55 of file zgematrix-zgbmatrix.hpp.

References i, CPPL::max(), CPPL::min(), and operator()().

zgematrix & zgematrix::operator-= ( const _zgematrix mat  )  [inline]

zgematrix-=_zgematrix operator

Definition at line 45 of file zgematrix-_zgematrix.hpp.

References _zgematrix::Array, _zrovector::Array, _zgematrix::destroy(), i, _zgematrix::M, and _zgematrix::N.

zgematrix & zgematrix::operator-= ( const zgematrix mat  )  [inline]

zgematrix operator-=

Definition at line 45 of file zgematrix-zgematrix.hpp.

References _zrovector::Array, and i.

zgematrix & zgematrix::operator/= ( const std::complex< double > &  d  )  [inline]

zgematrix/=stdcomplex<double> operator

Definition at line 16 of file zgematrix-complex.hpp.

References _zrovector::Array, and zscal_.

zgematrix & zgematrix::operator/= ( const double &  d  )  [inline]

zgematrix/=double operator

Definition at line 16 of file zgematrix-double.hpp.

References _zrovector::Array, and zdscal_.

zgematrix & zgematrix::operator= ( const _zhematrix mat  )  [inline]

zgematrix=_zhematrix operator

Definition at line 3 of file zgematrix-_zhematrix.hpp.

References _zhematrix::Array, _zrovector::Array, clear(), _zhematrix::complete(), _zhematrix::Darray, and _zhematrix::N.

zgematrix & zgematrix::operator= ( const zhematrix mat  )  [inline]

zgematrix=zhematrix operator

Definition at line 3 of file zgematrix-zhematrix.hpp.

References i, operator()(), and resize().

zgematrix & zgematrix::operator= ( const _zgbmatrix mat  )  [inline]

zgematrix & zgematrix::operator= ( const zgbmatrix mat  )  [inline]

zgematrix=zgbmatrix operator

Definition at line 3 of file zgematrix-zgbmatrix.hpp.

References i, CPPL::max(), CPPL::min(), operator()(), resize(), and zero().

zgematrix & zgematrix::operator= ( const _zgematrix mat  )  [inline]

zgematrix=_zgematrix operator

Definition at line 3 of file zgematrix-_zgematrix.hpp.

References shallow_copy().

zgematrix & zgematrix::operator= ( const zgematrix mat  )  [inline]

zgematrix=zgematrix operator

Definition at line 3 of file zgematrix-zgematrix.hpp.

References _zrovector::Array, and copy().

void zgematrix::read ( const char *  filename  )  [inline]

Definition at line 122 of file zgematrix-io.hpp.

References i, operator()(), and resize().

Referenced by zgematrix().

void zgematrix::resize ( const long &  _m,
const long &  _n 
) [inline]

resize the matrix

Definition at line 126 of file zgematrix-misc.hpp.

References _zrovector::Array, and i.

Referenced by operator=(), read(), and zgesvd().

void zgematrix::set ( const long &  i,
const long &  j,
const std::complex< double > &  v 
) const [inline]

set value for const object

Definition at line 53 of file zgematrix-io.hpp.

void zgematrix::shallow_copy ( const _zgematrix mat  )  [inline]

make a shallow copy of the matrix
This function is not designed to be used in project codes.

Definition at line 103 of file zgematrix-misc.hpp.

References _zgematrix::Array, _zrovector::Array, _zgematrix::Darray, _zgematrix::M, and _zgematrix::N.

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

void zgematrix::write ( const char *  filename  )  const [inline]

Definition at line 101 of file zgematrix-io.hpp.

References i, and operator()().

void zgematrix::zero (  )  [inline]

change the matrix into a zero matrix

Definition at line 26 of file zgematrix-misc.hpp.

References _zrovector::Array, and i.

Referenced by operator*(), operator*=(), operator=(), and zgematrix().

long zgematrix::zgeev ( std::vector< std::complex< double > > &  w,
std::vector< zrovector > &  vl 
) [inline]

calculate eigenvalues and left eigenvectors
All of the arguments need not to be initialized. w, vr are overwitten and become eigenvalues and left eigenvectors, respectively. This matrix is also overwritten.

Definition at line 496 of file zgematrix-lapack.hpp.

References _zrovector::Array, conj(), i, n, and zgeev_.

long zgematrix::zgeev ( std::vector< std::complex< double > > &  w,
std::vector< zcovector > &  vr 
) [inline]

calculate eigenvalues and right eigenvectors
All of the arguments need not to be initialized. w, vr are overwitten and become eigenvalues and right eigenvectors, respectively. This matrix is also overwritten.

Definition at line 446 of file zgematrix-lapack.hpp.

References _zrovector::Array, i, n, and zgeev_.

long zgematrix::zgeev ( std::vector< std::complex< double > > &  w  )  [inline]

calculate eigenvalues
The argument need not to be initialized. w is overwitten and become eigenvalues. This matrix is also overwritten.

Definition at line 403 of file zgematrix-lapack.hpp.

References _zrovector::Array, n, and zgeev_.

long zgematrix::zgels ( zcovector vec,
double &  residual 
) [inline]

solve overdetermined or underdetermined A*x=y using zgels with the sum of residual squares output
The residual is set as the sum of residual squares for overdetermined problems while it is always zero for underdetermined problems.

Definition at line 240 of file zgematrix-lapack.hpp.

References _zrovector::Array, zcovector::clear(), i, m, CPPL::max(), CPPL::min(), n, swap, and zgels_.

long zgematrix::zgels ( zgematrix mat,
drovector residual 
) [inline]

solve overdetermined or underdetermined A*X=Y using zgels with the sum of residual squares output
The residual is set as the columnwise sum of residual squares for overdetermined problems while it is always zero for underdetermined problems.

Definition at line 177 of file zgematrix-lapack.hpp.

References _zrovector::Array, clear(), i, drovector::l, CPPL::max(), CPPL::min(), drovector::resize(), swap, drovector::zero(), and zgels_.

long zgematrix::zgels ( zcovector vec  )  [inline]

solve overdetermined or underdetermined A*x=y using zgels

Definition at line 124 of file zgematrix-lapack.hpp.

References _zrovector::Array, zcovector::clear(), i, CPPL::max(), CPPL::min(), swap, and zgels_.

long zgematrix::zgels ( zgematrix mat  )  [inline]

solve overdetermined or underdetermined A*X=Y using zgels

Definition at line 72 of file zgematrix-lapack.hpp.

References _zrovector::Array, clear(), i, CPPL::max(), CPPL::min(), swap, and zgels_.

long zgematrix::zgelss ( zgematrix B,
dcovector S,
long &  RANK,
const double  RCOND = -1. 
) [inline]

calculate the least-squares-least-norm solution for overdetermined or underdetermined A*x=y using zgelss

Definition at line 345 of file zgematrix-lapack.hpp.

References dcovector::array, _zrovector::Array, B(), clear(), i, CPPL::max(), CPPL::min(), dcovector::resize(), swap, and zgelss_.

long zgematrix::zgelss ( zcovector B,
dcovector S,
long &  RANK,
const double  RCOND = -1. 
) [inline]

calculate the least-squares-least-norm solution for overdetermined or underdetermined A*x=y using zgelss

Definition at line 297 of file zgematrix-lapack.hpp.

References dcovector::array, _zrovector::Array, B(), zcovector::clear(), i, CPPL::max(), CPPL::min(), dcovector::resize(), swap, and zgelss_.

long zgematrix::zgesv ( zcovector vec  )  [inline]

solve A*x=y using zgesv
The argument is zcovector y. y is overwritten and become the solution x. A is also overwritten and become P*L*U.

Definition at line 38 of file zgematrix-lapack.hpp.

References _zrovector::Array, and zgesv_.

long zgematrix::zgesv ( zgematrix mat  )  [inline]

solve A*X=Y using zgesv
The argument is zgematrix Y. Y is overwritten and become the solution X. A is also overwritten and become P*L*U.

Definition at line 5 of file zgematrix-lapack.hpp.

References _zrovector::Array, and zgesv_.

Referenced by i().

long zgematrix::zgesvd ( dcovector S,
zgematrix U,
zgematrix VT 
) [inline]

compute the singular value decomposition (SVD)
The arguments are zcocector S, zgematrix U and VT. All of them need not to be initialized. S, U and VT are overwitten and become singular values, left singular vectors, and right singular vectors respectively. This matrix also overwritten.

Definition at line 561 of file zgematrix-lapack.hpp.

References dcovector::array, _zrovector::Array, m, CPPL::max(), CPPL::min(), n, resize(), dcovector::resize(), and zgesvd_.


Friends And Related Function Documentation

_zgematrix _ ( zgematrix mat  )  [friend]

convert user object to smart-temporary object

Definition at line 170 of file zgematrix-misc.hpp.

friend class _zcovector [friend]

Definition at line 203 of file zgematrix.hpp.

friend class _zgbmatrix [friend]

Definition at line 197 of file zgematrix.hpp.

friend class _zgematrix [friend]

Definition at line 195 of file zgematrix.hpp.

friend class _zhematrix [friend]

Definition at line 199 of file zgematrix.hpp.

friend class _zrovector [friend]

Definition at line 205 of file zgematrix.hpp.

friend class _zssmatrix [friend]

Definition at line 201 of file zgematrix.hpp.

_zgematrix conj ( const zgematrix mat  )  [friend]

return its conjugate matrix

Definition at line 52 of file zgematrix-calc.hpp.

Referenced by zgematrix().

_zgematrix conjt ( const zgematrix mat  )  [friend]

return its conjugate transposed matrix

Definition at line 69 of file zgematrix-calc.hpp.

std::complex<double> damax ( const zgematrix mat  )  [friend]

return its largest absolute value

Definition at line 105 of file zgematrix-calc.hpp.

_zgematrix i ( const zgematrix mat  )  [friend]

return its inverse matrix

Definition at line 21 of file zgematrix-calc.hpp.

Referenced by chsign(), copy(), identity(), operator*=(), operator+=(), operator-=(), operator=(), read(), resize(), write(), zero(), zgeev(), zgels(), zgelss(), and zgematrix().

void idamax ( long &  i,
long &  j,
const zgematrix mat 
) [friend]

search the index of element having the largest absolute value in 0-based numbering system

Definition at line 91 of file zgematrix-calc.hpp.

_zgematrix operator* ( const std::complex< double > &  d,
const zgematrix mat 
) [friend]

std::complex<double>*zgematrix operator

Definition at line 3 of file complex-zgematrix.hpp.

_zgematrix operator* ( const zgematrix mat,
const std::complex< double > &  d 
) [friend]

zgematrix*stdcomplex<double> operator

Definition at line 33 of file zgematrix-complex.hpp.

_zgematrix operator* ( const double &  d,
const zgematrix mat 
) [friend]

double*zgematrix operator

Definition at line 3 of file double-zgematrix.hpp.

_zgematrix operator* ( const zgematrix mat,
const double &  d 
) [friend]

zgematrix*double operator

Definition at line 33 of file zgematrix-double.hpp.

_zrovector operator* ( const _zrovector vec,
const zgematrix mat 
) [friend]

_zrovector*zgematrix operator

Definition at line 3 of file _zrovector-zgematrix.hpp.

_zrovector operator* ( const zrovector vec,
const zgematrix mat 
) [friend]

zrovector*zgematrix operator

Definition at line 3 of file zrovector-zgematrix.hpp.

_zcovector operator* ( const zgematrix mat,
const _zcovector vec 
) [friend]

zgematrix*_zcovector operator

Definition at line 3 of file zgematrix-_zcovector.hpp.

_zcovector operator* ( const zgematrix mat,
const zcovector vec 
) [friend]

zgematrix*zcovector operator

Definition at line 3 of file zgematrix-zcovector.hpp.

_zgematrix operator* ( const zgematrix matA,
const _zssmatrix matB 
) [friend]

zgematrix*_zssmatrix operator

Definition at line 61 of file zgematrix-_zssmatrix.hpp.

_zgematrix operator* ( const zgematrix matA,
const zssmatrix matB 
) [friend]

zgematrix*zssmatrix operator

Definition at line 59 of file zgematrix-zssmatrix.hpp.

_zgematrix operator* ( const _zssmatrix matA,
const zgematrix matB 
) [friend]

_zssmatrix*zgematrix operator

Definition at line 61 of file _zssmatrix-zgematrix.hpp.

_zgematrix operator* ( const zssmatrix matA,
const zgematrix matB 
) [friend]

zssmatrix*zgematrix operator

Definition at line 59 of file zssmatrix-zgematrix.hpp.

_zgematrix operator* ( const zgematrix matA,
const _zhematrix matB 
) [friend]

zgematrix*_zhematrix operator

Definition at line 172 of file zgematrix-_zhematrix.hpp.

_zgematrix operator* ( const zgematrix matA,
const zhematrix matB 
) [friend]

zgematrix*zhematrix operator

Definition at line 162 of file zgematrix-zhematrix.hpp.

_zgematrix operator* ( const _zhematrix matA,
const zgematrix matB 
) [friend]

_zhematrix*zgematrix operator

Definition at line 61 of file _zhematrix-zgematrix.hpp.

_zgematrix operator* ( const zhematrix matA,
const zgematrix matB 
) [friend]

zhematrix*zgematrix operator

Definition at line 58 of file zhematrix-zgematrix.hpp.

_zgematrix operator* ( const _zgbmatrix matA,
const zgematrix matB 
) [friend]

_zgbmatrix*zgematrix operator

Definition at line 63 of file _zgbmatrix-zgematrix.hpp.

_zgematrix operator* ( const zgbmatrix matA,
const zgematrix matB 
) [friend]

zgbmatrix*zgematrix operator

Definition at line 61 of file zgbmatrix-zgematrix.hpp.

_zgematrix operator* ( const zgematrix matA,
const _zgbmatrix matB 
) [friend]

zgematrix*_zgbmatrix operator

Definition at line 184 of file zgematrix-_zgbmatrix.hpp.

_zgematrix operator* ( const zgematrix matA,
const zgbmatrix matB 
) [friend]

zgematrix*zgbmatrix operator

Definition at line 177 of file zgematrix-zgbmatrix.hpp.

_zgematrix operator* ( const _zgematrix matA,
const zgematrix matB 
) [friend]

_zgematrix*zgematrix operator

Definition at line 51 of file _zgematrix-zgematrix.hpp.

_zgematrix operator* ( const zgematrix matA,
const _zgematrix matB 
) [friend]

zgematrix*_zgematrix operator

Definition at line 152 of file zgematrix-_zgematrix.hpp.

_zgematrix operator* ( const zgematrix matA,
const zgematrix matB 
) [friend]

zgematrix*zgematrix operator

Definition at line 153 of file zgematrix-zgematrix.hpp.

_zgematrix operator+ ( const _zssmatrix matA,
const zgematrix matB 
) [friend]

_zssmatrix+zgematrix operator

Definition at line 3 of file _zssmatrix-zgematrix.hpp.

_zgematrix operator+ ( const zssmatrix matA,
const zgematrix matB 
) [friend]

zssmatrix+zgematrix operator

Definition at line 3 of file zssmatrix-zgematrix.hpp.

_zgematrix operator+ ( const zgematrix matA,
const _zssmatrix matB 
) [friend]

zgematrix+_zssmatrix operator

Definition at line 3 of file zgematrix-_zssmatrix.hpp.

_zgematrix operator+ ( const zgematrix matA,
const zssmatrix matB 
) [friend]

zgematrix+zssmatrix operator

Definition at line 3 of file zgematrix-zssmatrix.hpp.

_zgematrix operator+ ( const _zhematrix matA,
const zgematrix matB 
) [friend]

_zhematrix+zgematrix operator

Definition at line 3 of file _zhematrix-zgematrix.hpp.

_zgematrix operator+ ( const zhematrix matA,
const zgematrix matB 
) [friend]

zhematrix+zgematrix operator

Definition at line 3 of file zhematrix-zgematrix.hpp.

_zgematrix operator+ ( const zgematrix matA,
const _zhematrix matB 
) [friend]

zgematrix+_zhematrix operator

Definition at line 116 of file zgematrix-_zhematrix.hpp.

_zgematrix operator+ ( const zgematrix matA,
const zhematrix matB 
) [friend]

zgematrix+zhematrix operator

Definition at line 108 of file zgematrix-zhematrix.hpp.

_zgematrix operator+ ( const _zgbmatrix matA,
const zgematrix matB 
) [friend]

_zgbmatrix+zgematrix operator

Definition at line 3 of file _zgbmatrix-zgematrix.hpp.

_zgematrix operator+ ( const zgbmatrix matA,
const zgematrix matB 
) [friend]

zgbmatrix+zgematrix operator

Definition at line 3 of file zgbmatrix-zgematrix.hpp.

_zgematrix operator+ ( const zgematrix matA,
const _zgbmatrix matB 
) [friend]

zgematrix+_zgbmatrix operator

Definition at line 122 of file zgematrix-_zgbmatrix.hpp.

_zgematrix operator+ ( const zgematrix matA,
const zgbmatrix matB 
) [friend]

zgematrix+zgbmatrix operator

Definition at line 117 of file zgematrix-zgbmatrix.hpp.

_zgematrix operator+ ( const _zgematrix matA,
const zgematrix matB 
) [friend]

_zgematrix+zgematrix operator

Definition at line 3 of file _zgematrix-zgematrix.hpp.

_zgematrix operator+ ( const zgematrix matA,
const _zgematrix matB 
) [friend]

zgematrix+_zgematrix operator

Definition at line 102 of file zgematrix-_zgematrix.hpp.

_zgematrix operator+ ( const zgematrix matA,
const zgematrix matB 
) [friend]

zgematrix+zgematrix operator

Definition at line 99 of file zgematrix-zgematrix.hpp.

const zgematrix& operator+ ( const zgematrix mat  )  [friend]

+zgematrix operator

Definition at line 3 of file zgematrix-unary.hpp.

_zgematrix operator- ( const _zssmatrix matA,
const zgematrix matB 
) [friend]

_zssmatrix-zgematrix operator

Definition at line 32 of file _zssmatrix-zgematrix.hpp.

_zgematrix operator- ( const zssmatrix matA,
const zgematrix matB 
) [friend]

zssmatrix-zgematrix operator

Definition at line 31 of file zssmatrix-zgematrix.hpp.

_zgematrix operator- ( const zgematrix matA,
const _zssmatrix matB 
) [friend]

zgematrix-_zssmatrix operator

Definition at line 32 of file zgematrix-_zssmatrix.hpp.

_zgematrix operator- ( const zgematrix matA,
const zssmatrix matB 
) [friend]

zgematrix-zssmatrix operator

Definition at line 31 of file zgematrix-zssmatrix.hpp.

_zgematrix operator- ( const _zhematrix matA,
const zgematrix matB 
) [friend]

_zhematrix-zgematrix operator

Definition at line 31 of file _zhematrix-zgematrix.hpp.

_zgematrix operator- ( const zhematrix matA,
const zgematrix matB 
) [friend]

zhematrix-zgematrix operator

Definition at line 30 of file zhematrix-zgematrix.hpp.

_zgematrix operator- ( const zgematrix matA,
const _zhematrix matB 
) [friend]

zgematrix-_zhematrix operator

Definition at line 144 of file zgematrix-_zhematrix.hpp.

_zgematrix operator- ( const zgematrix matA,
const zhematrix matB 
) [friend]

zgematrix-zhematrix operator

Definition at line 135 of file zgematrix-zhematrix.hpp.

_zgematrix operator- ( const _zgbmatrix matA,
const zgematrix matB 
) [friend]

_zgbmatrix-zgematrix operator

Definition at line 33 of file _zgbmatrix-zgematrix.hpp.

_zgematrix operator- ( const zgbmatrix matA,
const zgematrix matB 
) [friend]

zgbmatrix-zgematrix operator

Definition at line 32 of file zgbmatrix-zgematrix.hpp.

_zgematrix operator- ( const zgematrix matA,
const _zgbmatrix matB 
) [friend]

zgematrix-_zgbmatrix operator

Definition at line 153 of file zgematrix-_zgbmatrix.hpp.

_zgematrix operator- ( const zgematrix matA,
const zgbmatrix matB 
) [friend]

zgematrix-zgbmatrix operator

Definition at line 147 of file zgematrix-zgbmatrix.hpp.

_zgematrix operator- ( const _zgematrix matA,
const zgematrix matB 
) [friend]

_zgematrix-zgematrix operator

Definition at line 27 of file _zgematrix-zgematrix.hpp.

_zgematrix operator- ( const zgematrix matA,
const _zgematrix matB 
) [friend]

zgematrix-_zgematrix operator

Definition at line 126 of file zgematrix-_zgematrix.hpp.

_zgematrix operator- ( const zgematrix matA,
const zgematrix matB 
) [friend]

zgematrix-zgematrix operator

Definition at line 126 of file zgematrix-zgematrix.hpp.

_zgematrix operator- ( const zgematrix mat  )  [friend]

-zgematrix operator

Definition at line 15 of file zgematrix-unary.hpp.

_zgematrix operator/ ( const zgematrix mat,
const std::complex< double > &  d 
) [friend]

zgematrix/stdcomplex<double> operator

Definition at line 48 of file zgematrix-complex.hpp.

_zgematrix operator/ ( const zgematrix mat,
const double &  d 
) [friend]

zgematrix/double operator

Definition at line 48 of file zgematrix-double.hpp.

std::ostream& operator<< ( std::ostream &  s,
const zgematrix mat 
) [friend]

Definition at line 80 of file zgematrix-io.hpp.

void swap ( zgematrix A,
zgematrix B 
) [friend]

swap two matrices

Definition at line 154 of file zgematrix-misc.hpp.

Referenced by operator*=(), zgels(), and zgelss().

_zgematrix t ( const zgematrix mat  )  [friend]

return transposed zgematrix

Definition at line 3 of file zgematrix-calc.hpp.

friend class zcovector [friend]

Definition at line 202 of file zgematrix.hpp.

friend class zgbmatrix [friend]

Definition at line 196 of file zgematrix.hpp.

friend class zhematrix [friend]

Definition at line 198 of file zgematrix.hpp.

friend class zrovector [friend]

Definition at line 204 of file zgematrix.hpp.

friend class zssmatrix [friend]

Definition at line 200 of file zgematrix.hpp.


Member Data Documentation

std::complex<double>* const& zgematrix::array

1D array to store matrix data (readable)

Definition at line 16 of file zgematrix.hpp.

Referenced by dgematrix::operator _zgematrix(), _dgematrix::operator _zgematrix(), operator*(), operator*=(), operator-(), and operator/().

std::complex<double>** const& zgematrix::darray

array of pointers of column head addresses (readable)

Definition at line 17 of file zgematrix.hpp.

long const& zgematrix::m

matrix row size (readable)

Definition at line 14 of file zgematrix.hpp.

Referenced by conjt(), operator*(), operator*=(), operator+(), operator-(), t(), zgels(), and zgesvd().

long const& zgematrix::n

matrix column size (readable)

Definition at line 15 of file zgematrix.hpp.

Referenced by conjt(), operator*(), operator*=(), operator+(), operator-(), t(), zgeev(), zgels(), and zgesvd().


The documentation for this class was generated from the following files:

Generated on Wed May 26 16:37:43 2010 for VERB_CODE_2.0 by  doxygen 1.5.9