CPPL::dgbmatrix Class Reference

Real Double-precision General Band Matrix Class. More...

#include <cpplapack.h>

List of all members.

Public Member Functions

 dgbmatrix ()
 dgbmatrix (const dgbmatrix &)
 dgbmatrix (const _dgbmatrix &)
 dgbmatrix (const long &, const long &, const long &, const long &)
 dgbmatrix (const char *)
 ~dgbmatrix ()
 operator _zgbmatrix ()
double & operator() (const long &, const long &)
double operator() (const long &, const long &) const
void set (const long &, const long &, const double &) const
void write (const char *) const
void read (const char *)
void clear ()
void zero ()
void identity ()
void chsign ()
void copy (const dgbmatrix &)
void shallow_copy (const _dgbmatrix &)
void resize (const long &, const long &, const long &, const long &)
long dgbsv (dgematrix &)
long dgbsv (dcovector &)
dgbmatrixoperator= (const dgbmatrix &)
dgbmatrixoperator+= (const dgbmatrix &)
dgbmatrixoperator-= (const dgbmatrix &)
dgbmatrixoperator*= (const dgbmatrix &)
dgbmatrixoperator= (const _dgbmatrix &)
dgbmatrixoperator+= (const _dgbmatrix &)
dgbmatrixoperator-= (const _dgbmatrix &)
dgbmatrixoperator*= (const _dgbmatrix &)
dgbmatrixoperator*= (const double &)
dgbmatrixoperator/= (const double &)

Public Attributes

long const & m
 matrix row size (readable)
long const & n
 matrix column size (readable)
long const & kl
 lower band width (readable)
long const & ku
 upper band width (readable)
double *const & array
 1D array to store matrix data (readable)
double **const & darray
 array of pointers of column head addresses (readable)

Friends

class dgematrix
class _dgematrix
class _dgbmatrix
class dsymatrix
class _dsymatrix
class dssmatrix
class _dssmatrix
class dcovector
class _dcovector
class drovector
class _drovector
std::ostream & operator<< (std::ostream &, const dgbmatrix &)
void swap (dgbmatrix &, dgbmatrix &)
_dgbmatrix _ (dgbmatrix &)
_dgbmatrix t (const dgbmatrix &)
_dgematrix i (const dgbmatrix &)
const dgbmatrixoperator+ (const dgbmatrix &)
_dgbmatrix operator- (const dgbmatrix &)
_dgbmatrix operator+ (const dgbmatrix &, const dgbmatrix &)
_dgbmatrix operator+ (const dgbmatrix &, const _dgbmatrix &)
_dgbmatrix operator+ (const _dgbmatrix &, const dgbmatrix &)
_dgematrix operator+ (const dgbmatrix &, const dgematrix &)
_dgematrix operator+ (const dgbmatrix &, const _dgematrix &)
_dgematrix operator+ (const dgematrix &, const dgbmatrix &)
_dgematrix operator+ (const _dgematrix &, const dgbmatrix &)
_dgematrix operator+ (const dgbmatrix &, const dsymatrix &)
_dgematrix operator+ (const dgbmatrix &, const _dsymatrix &)
_dgematrix operator+ (const dsymatrix &, const dgbmatrix &)
_dgematrix operator+ (const _dsymatrix &, const dgbmatrix &)
_dgematrix operator+ (const dgbmatrix &, const dssmatrix &)
_dgematrix operator+ (const dgbmatrix &, const _dssmatrix &)
_dgematrix operator+ (const dssmatrix &, const dgbmatrix &)
_dgematrix operator+ (const _dssmatrix &, const dgbmatrix &)
_dgbmatrix operator- (const dgbmatrix &, const dgbmatrix &)
_dgbmatrix operator- (const dgbmatrix &, const _dgbmatrix &)
_dgbmatrix operator- (const _dgbmatrix &, const dgbmatrix &)
_dgematrix operator- (const dgbmatrix &, const dgematrix &)
_dgematrix operator- (const dgbmatrix &, const _dgematrix &)
_dgematrix operator- (const dgematrix &, const dgbmatrix &)
_dgematrix operator- (const _dgematrix &, const dgbmatrix &)
_dgematrix operator- (const dgbmatrix &, const dsymatrix &)
_dgematrix operator- (const dgbmatrix &, const _dsymatrix &)
_dgematrix operator- (const dsymatrix &, const dgbmatrix &)
_dgematrix operator- (const _dsymatrix &, const dgbmatrix &)
_dgematrix operator- (const dgbmatrix &, const dssmatrix &)
_dgematrix operator- (const dgbmatrix &, const _dssmatrix &)
_dgematrix operator- (const dssmatrix &, const dgbmatrix &)
_dgematrix operator- (const _dssmatrix &, const dgbmatrix &)
_dgbmatrix operator* (const dgbmatrix &, const dgbmatrix &)
_dgbmatrix operator* (const dgbmatrix &, const _dgbmatrix &)
_dgbmatrix operator* (const _dgbmatrix &, const dgbmatrix &)
_dgematrix operator* (const dgbmatrix &, const dgematrix &)
_dgematrix operator* (const dgbmatrix &, const _dgematrix &)
_dgematrix operator* (const dgematrix &, const dgbmatrix &)
_dgematrix operator* (const _dgematrix &, const dgbmatrix &)
_dgematrix operator* (const dgbmatrix &, const dsymatrix &)
_dgematrix operator* (const dgbmatrix &, const _dsymatrix &)
_dgematrix operator* (const dsymatrix &, const dgbmatrix &)
_dgematrix operator* (const _dsymatrix &, const dgbmatrix &)
_dgematrix operator* (const dgbmatrix &, const dssmatrix &)
_dgematrix operator* (const dgbmatrix &, const _dssmatrix &)
_dgematrix operator* (const dssmatrix &, const dgbmatrix &)
_dgematrix operator* (const _dssmatrix &, const dgbmatrix &)
_dcovector operator* (const dgbmatrix &, const dcovector &)
_dcovector operator* (const dgbmatrix &, const _dcovector &)
_drovector operator* (const drovector &, const dgbmatrix &)
_drovector operator* (const _drovector &, const dgbmatrix &)
_dgbmatrix operator* (const dgbmatrix &, const double &)
_dgbmatrix operator* (const double &, const dgbmatrix &)
_dgbmatrix operator/ (const dgbmatrix &, const double &)


Detailed Description

Real Double-precision General Band Matrix Class.

Definition at line 268 of file cpplapack.h.


Constructor & Destructor Documentation

dgbmatrix::dgbmatrix (  )  [inline]

dgbmatrix constructor

Definition at line 7541 of file cpplapack.h.

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

dgbmatrix copy constructor

Definition at line 7566 of file cpplapack.h.

dgbmatrix::dgbmatrix ( const _dgbmatrix mat  )  [inline]

dgbmatrix constructor to cast _dgbmatrix

Definition at line 7594 of file cpplapack.h.

dgbmatrix::dgbmatrix ( const long &  _m,
const long &  _n,
const long &  _kl,
const long &  _ku 
) [inline]

dgbmatrix constructor with size specification

Definition at line 7617 of file cpplapack.h.

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

dgbmatrix constructor with filename

Definition at line 7658 of file cpplapack.h.

dgbmatrix::~dgbmatrix (  )  [inline]

dgbmatrix destructor

Definition at line 7684 of file cpplapack.h.


Member Function Documentation

void dgbmatrix::chsign (  )  [inline]

change sign(+/-) of the matrix

Definition at line 7952 of file cpplapack.h.

void dgbmatrix::clear (  )  [inline]

clear all the matrix data and set the sizes 0

Definition at line 7892 of file cpplapack.h.

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

make a deep copy of the matrix

Definition at line 7963 of file cpplapack.h.

long dgbmatrix::dgbsv ( dcovector vec  )  [inline]

solve A*x=y using dgbsv
The argument is dcovector y. y is overwritten and become the solution x. A is also overwritten.

Definition at line 8187 of file cpplapack.h.

long dgbmatrix::dgbsv ( dgematrix mat  )  [inline]

solve A*X=Y using dgbsv
The argument is dgematrix Y. Y is overwritten and become the solution X. A is also overwritten.

Definition at line 8147 of file cpplapack.h.

Referenced by Lapack().

void dgbmatrix::identity (  )  [inline]

change the matrix into an identity matrix

Definition at line 7930 of file cpplapack.h.

dgbmatrix::operator _zgbmatrix (  )  [inline]

cast operator to _zgbmatrix

Definition at line 7703 of file cpplapack.h.

double dgbmatrix::operator() ( const long &  i,
const long &  j 
) const [inline]

operator() for const object

Definition at line 7748 of file cpplapack.h.

double & dgbmatrix::operator() ( const long &  i,
const long &  j 
) [inline]

operator() for non-const object

Definition at line 7725 of file cpplapack.h.

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

dgbmatrix*=double operator

Definition at line 9420 of file cpplapack.h.

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

dgbmatrix*=_dgbmatrix operator

Definition at line 8818 of file cpplapack.h.

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

dgbmatrix*=dgbmatrix operator

Definition at line 8559 of file cpplapack.h.

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

dgbmatrix+=_dgbmatrix operator
If the band width of the left side matrix is narrower than the right side matrix, the band width of the left side matrix become thicker as same as the right side matrix.

Definition at line 8719 of file cpplapack.h.

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

dgbmatrix+=dgbmatrix operator
If the band width of the left side matrix is narrower than the right side matrix, the band width of the left side matrix become thicker as same as the right side matrix.

Definition at line 8462 of file cpplapack.h.

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

dgbmatrix-=_dgbmatrix operator
If the band width of the left side matrix is narrower than the right side matrix, the band width of the left side matrix become thicker as same as the right side matrix.

Definition at line 8769 of file cpplapack.h.

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

dgbmatrix-=dgbmatrix operator
If the band width of the left side matrix is narrower than the right side matrix, the band width of the left side matrix become thicker as same as the right side matrix.

Definition at line 8511 of file cpplapack.h.

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

dgbmatrix/=double operator

Definition at line 9433 of file cpplapack.h.

dgbmatrix & dgbmatrix::operator= ( const _dgbmatrix mat  )  [inline]

dgbmatrix=_dgbmatrix operator

Definition at line 8701 of file cpplapack.h.

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

dgbmatrix=dgbmatrix operator
The left side matrix is overwritten thoroughly including band width.

Definition at line 8442 of file cpplapack.h.

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

Definition at line 7846 of file cpplapack.h.

void dgbmatrix::resize ( const long &  _m,
const long &  _n,
const long &  _kl,
const long &  _ku 
) [inline]

resize the matrix

Definition at line 8021 of file cpplapack.h.

void dgbmatrix::set ( const long &  i,
const long &  j,
const double &  v 
) const [inline]

set value for const object

Definition at line 7775 of file cpplapack.h.

void dgbmatrix::shallow_copy ( const _dgbmatrix mat  )  [inline]

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

Definition at line 7996 of file cpplapack.h.

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

Definition at line 7824 of file cpplapack.h.

void dgbmatrix::zero (  )  [inline]

change the matrix into a zero matrix

Definition at line 7918 of file cpplapack.h.


Friends And Related Function Documentation

_dgbmatrix _ ( dgbmatrix mat  )  [friend]

convert user object to smart-temporary object

Definition at line 8072 of file cpplapack.h.

friend class _dcovector [friend]

Definition at line 426 of file cpplapack.h.

friend class _dgbmatrix [friend]

Definition at line 420 of file cpplapack.h.

friend class _dgematrix [friend]

Definition at line 419 of file cpplapack.h.

friend class _drovector [friend]

Definition at line 428 of file cpplapack.h.

friend class _dssmatrix [friend]

Definition at line 424 of file cpplapack.h.

friend class _dsymatrix [friend]

Definition at line 422 of file cpplapack.h.

friend class dcovector [friend]

Definition at line 425 of file cpplapack.h.

friend class dgematrix [friend]

Definition at line 418 of file cpplapack.h.

friend class drovector [friend]

Definition at line 427 of file cpplapack.h.

friend class dssmatrix [friend]

Definition at line 423 of file cpplapack.h.

friend class dsymatrix [friend]

Definition at line 421 of file cpplapack.h.

_dgematrix i ( const dgbmatrix mat  )  [friend]

return its inverse matrix

Definition at line 8118 of file cpplapack.h.

_dgbmatrix operator* ( const double &  d,
const dgbmatrix mat 
) [friend]

double*dgbmatrix operator

Definition at line 20196 of file cpplapack.h.

_dgbmatrix operator* ( const dgbmatrix mat,
const double &  d 
) [friend]

dgbmatrix*double operator

Definition at line 9450 of file cpplapack.h.

_drovector operator* ( const _drovector vec,
const dgbmatrix mat 
) [friend]

_drovector*dgbmatrix operator

Definition at line 19761 of file cpplapack.h.

_drovector operator* ( const drovector vec,
const dgbmatrix mat 
) [friend]

drovector*dgbmatrix operator

Definition at line 18867 of file cpplapack.h.

_dcovector operator* ( const dgbmatrix mat,
const _dcovector vec 
) [friend]

dgbmatrix*_dcovector operator

Definition at line 9391 of file cpplapack.h.

_dcovector operator* ( const dgbmatrix mat,
const dcovector vec 
) [friend]

dgbmatrix*dcovector operator

Definition at line 9365 of file cpplapack.h.

_dgematrix operator* ( const _dssmatrix matA,
const dgbmatrix matB 
) [friend]

_dssmatrix*dgbmatrix operator

Definition at line 16239 of file cpplapack.h.

_dgematrix operator* ( const dssmatrix matA,
const dgbmatrix matB 
) [friend]

dssmatrix*dgbmatrix operator

Definition at line 14889 of file cpplapack.h.

_dgematrix operator* ( const dgbmatrix matA,
const _dssmatrix matB 
) [friend]

dgbmatrix*_dssmatrix operator

Definition at line 9332 of file cpplapack.h.

_dgematrix operator* ( const dgbmatrix matA,
const dssmatrix matB 
) [friend]

dgbmatrix*dssmatrix operator

Definition at line 9236 of file cpplapack.h.

_dgematrix operator* ( const _dsymatrix matA,
const dgbmatrix matB 
) [friend]

_dgematrix*dgbmatrix operator

Definition at line 13077 of file cpplapack.h.

_dgematrix operator* ( const dsymatrix matA,
const dgbmatrix matB 
) [friend]

dsymatrix*dgbmatrix operator

Definition at line 11840 of file cpplapack.h.

_dgematrix operator* ( const dgbmatrix matA,
const _dsymatrix matB 
) [friend]

dgbmatrix*_dsymatrix operator

Definition at line 9139 of file cpplapack.h.

_dgematrix operator* ( const dgbmatrix matA,
const dsymatrix matB 
) [friend]

dgbmatrix*dsymatrix operator

Definition at line 9039 of file cpplapack.h.

_dgematrix operator* ( const _dgematrix matA,
const dgbmatrix matB 
) [friend]

_dgematrix*dgbmatrix operator

Definition at line 6973 of file cpplapack.h.

_dgematrix operator* ( const dgematrix matA,
const dgbmatrix matB 
) [friend]

dgematrix*dgbmatrix operator

Definition at line 5540 of file cpplapack.h.

_dgematrix operator* ( const dgbmatrix matA,
const _dgematrix matB 
) [friend]

dgbmatrix*_dgematrix operator

Definition at line 8406 of file cpplapack.h.

_dgematrix operator* ( const dgbmatrix matA,
const dgematrix matB 
) [friend]

dgbmatrix*dgematrix operator

Definition at line 8310 of file cpplapack.h.

_dgbmatrix operator* ( const _dgbmatrix matA,
const dgbmatrix matB 
) [friend]

_dgbmatrix*dgbmatrix operator

Definition at line 10025 of file cpplapack.h.

_dgbmatrix operator* ( const dgbmatrix matA,
const _dgbmatrix matB 
) [friend]

dgbmatrix*_dgbmatrix operator

Definition at line 8939 of file cpplapack.h.

_dgbmatrix operator* ( const dgbmatrix matA,
const dgbmatrix matB 
) [friend]

dgbmatrix*dgbmatrix operator

Definition at line 8666 of file cpplapack.h.

_dgematrix operator+ ( const _dssmatrix matA,
const dgbmatrix matB 
) [friend]

_dssmatrix+dgbmatrix operator

Definition at line 16175 of file cpplapack.h.

_dgematrix operator+ ( const dssmatrix matA,
const dgbmatrix matB 
) [friend]

dssmatrix+dgbmatrix operator

Definition at line 14827 of file cpplapack.h.

_dgematrix operator+ ( const dgbmatrix matA,
const _dssmatrix matB 
) [friend]

dgbmatrix+_dssmatrix operator

Definition at line 9268 of file cpplapack.h.

_dgematrix operator+ ( const dgbmatrix matA,
const dssmatrix matB 
) [friend]

dgbmatrix+dssmatrix operator

Definition at line 9174 of file cpplapack.h.

_dgematrix operator+ ( const _dsymatrix matA,
const dgbmatrix matB 
) [friend]

_dsymatrix+dgbmatrix operator

Definition at line 13011 of file cpplapack.h.

_dgematrix operator+ ( const dsymatrix matA,
const dgbmatrix matB 
) [friend]

dsymatrix+dgbmatrix operator

Definition at line 11776 of file cpplapack.h.

_dgematrix operator+ ( const dgbmatrix matA,
const _dsymatrix matB 
) [friend]

dgbmatrix+_dsymatrix operator

Definition at line 9073 of file cpplapack.h.

_dgematrix operator+ ( const dgbmatrix matA,
const dsymatrix matB 
) [friend]

dgbmatrix+dsymatrix operator

Definition at line 8975 of file cpplapack.h.

_dgematrix operator+ ( const _dgematrix matA,
const dgbmatrix matB 
) [friend]

_dgematrix+dgbmatrix operator

Definition at line 6917 of file cpplapack.h.

_dgematrix operator+ ( const dgematrix matA,
const dgbmatrix matB 
) [friend]

dgematrix+dgbmatrix operator

Definition at line 5480 of file cpplapack.h.

_dgematrix operator+ ( const dgbmatrix matA,
const _dgematrix matB 
) [friend]

dgbmatrix+_dgematrix operator

Definition at line 8344 of file cpplapack.h.

_dgematrix operator+ ( const dgbmatrix matA,
const dgematrix matB 
) [friend]

dgbmatrix+dgematrix operator

Definition at line 8252 of file cpplapack.h.

_dgbmatrix operator+ ( const _dgbmatrix matA,
const dgbmatrix matB 
) [friend]

_dgbmatrix+dgbmatrix operator

Definition at line 9932 of file cpplapack.h.

_dgbmatrix operator+ ( const dgbmatrix matA,
const _dgbmatrix matB 
) [friend]

dgbmatrix+_dgbmatrix operator

Definition at line 8858 of file cpplapack.h.

_dgbmatrix operator+ ( const dgbmatrix matA,
const dgbmatrix matB 
) [friend]

dgbmatrix+dgbmatrix operator

Definition at line 8598 of file cpplapack.h.

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

+dgbmatrix operator

Definition at line 8224 of file cpplapack.h.

_dgematrix operator- ( const _dssmatrix matA,
const dgbmatrix matB 
) [friend]

_dssmatrix-dgbmatrix operator

Definition at line 16207 of file cpplapack.h.

_dgematrix operator- ( const dssmatrix matA,
const dgbmatrix matB 
) [friend]

dssmatrix-dgbmatrix operator

Definition at line 14858 of file cpplapack.h.

_dgematrix operator- ( const dgbmatrix matA,
const _dssmatrix matB 
) [friend]

dgbmatrix-_dssmatrix operator

Definition at line 9300 of file cpplapack.h.

_dgematrix operator- ( const dgbmatrix matA,
const dssmatrix matB 
) [friend]

dgbmatrix-dssmatrix operator

Definition at line 9205 of file cpplapack.h.

_dgematrix operator- ( const _dsymatrix matA,
const dgbmatrix matB 
) [friend]

_dsymatrix-dgbmatrix operator

Definition at line 13044 of file cpplapack.h.

_dgematrix operator- ( const dsymatrix matA,
const dgbmatrix matB 
) [friend]

dsymatrix-dgbmatrix operator

Definition at line 11808 of file cpplapack.h.

_dgematrix operator- ( const dgbmatrix matA,
const _dsymatrix matB 
) [friend]

dgbmatrix-_dsymatrix operator

Definition at line 9106 of file cpplapack.h.

_dgematrix operator- ( const dgbmatrix matA,
const dsymatrix matB 
) [friend]

dgbmatrix-dsymatrix operator

Definition at line 9007 of file cpplapack.h.

_dgematrix operator- ( const _dgematrix matA,
const dgbmatrix matB 
) [friend]

_dgematrix-dgbmatrix operator

Definition at line 6945 of file cpplapack.h.

_dgematrix operator- ( const dgematrix matA,
const dgbmatrix matB 
) [friend]

dgematrix-dgbmatrix operator

Definition at line 5510 of file cpplapack.h.

_dgematrix operator- ( const dgbmatrix matA,
const _dgematrix matB 
) [friend]

dgbmatrix-_dgematrix operator

Definition at line 8372 of file cpplapack.h.

_dgematrix operator- ( const dgbmatrix matA,
const dgematrix matB 
) [friend]

dgbmatrix-dgematrix operator

Definition at line 8281 of file cpplapack.h.

_dgbmatrix operator- ( const _dgbmatrix matA,
const dgbmatrix matB 
) [friend]

_dgbmatrix-dgbmatrix operator

Definition at line 9979 of file cpplapack.h.

_dgbmatrix operator- ( const dgbmatrix matA,
const _dgbmatrix matB 
) [friend]

dgbmatrix-_dgbmatrix operator

Definition at line 8904 of file cpplapack.h.

_dgbmatrix operator- ( const dgbmatrix matA,
const dgbmatrix matB 
) [friend]

dgbmatrix-dgbmatrix operator

Definition at line 8632 of file cpplapack.h.

_dgbmatrix operator- ( const dgbmatrix mat  )  [friend]

-dgbmatrix operator

Definition at line 8236 of file cpplapack.h.

_dgbmatrix operator/ ( const dgbmatrix mat,
const double &  d 
) [friend]

dgbmatrix/double operator

Definition at line 9467 of file cpplapack.h.

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

Definition at line 7801 of file cpplapack.h.

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

swap two matrices

Definition at line 8056 of file cpplapack.h.

_dgbmatrix t ( const dgbmatrix mat  )  [friend]

return transposed dgbmatrix

Definition at line 8099 of file cpplapack.h.


Member Data Documentation

double* const& CPPL::dgbmatrix::array

1D array to store matrix data (readable)

Definition at line 285 of file cpplapack.h.

double** const& CPPL::dgbmatrix::darray

array of pointers of column head addresses (readable)

Definition at line 286 of file cpplapack.h.

long const& CPPL::dgbmatrix::kl

lower band width (readable)

Definition at line 283 of file cpplapack.h.

long const& CPPL::dgbmatrix::ku

upper band width (readable)

Definition at line 284 of file cpplapack.h.

long const& CPPL::dgbmatrix::m

matrix row size (readable)

Definition at line 281 of file cpplapack.h.

long const& CPPL::dgbmatrix::n

matrix column size (readable)

Definition at line 282 of file cpplapack.h.


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

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