VERB_code_2.3
CPPL::dgbmatrix Class Reference

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

#include <cpplapack.h>

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.

Constructor & Destructor Documentation

dgbmatrix::dgbmatrix ( )
inline

dgbmatrix constructor

dgbmatrix::dgbmatrix ( const dgbmatrix mat)
inline

dgbmatrix copy constructor

dgbmatrix::dgbmatrix ( const _dgbmatrix mat)
inline

dgbmatrix constructor to cast _dgbmatrix

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

dgbmatrix constructor with size specification

dgbmatrix::dgbmatrix ( const char *  filename)
inline

dgbmatrix constructor with filename

dgbmatrix::~dgbmatrix ( )
inline

dgbmatrix destructor

Member Function Documentation

void dgbmatrix::chsign ( )
inline

change sign(+/-) of the matrix

void dgbmatrix::clear ( )
inline

clear all the matrix data and set the sizes 0

void dgbmatrix::copy ( const dgbmatrix mat)
inline

make a deep copy of the matrix

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.

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.

void dgbmatrix::identity ( )
inline

change the matrix into an identity matrix

dgbmatrix::operator _zgbmatrix ( )
inline

cast operator to _zgbmatrix

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

operator() for non-const object

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

operator() for const object

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

dgbmatrix*=dgbmatrix operator

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

dgbmatrix*=_dgbmatrix operator

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

dgbmatrix*=double operator

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.

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.

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.

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.

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

dgbmatrix/=double operator

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

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

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

dgbmatrix=_dgbmatrix operator

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

resize the matrix

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

set value for const object

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.

void dgbmatrix::zero ( )
inline

change the matrix into a zero matrix

Friends And Related Function Documentation

_dgbmatrix _ ( dgbmatrix mat)
friend

convert user object to smart-temporary object

_dgematrix i ( const dgbmatrix mat)
friend

return its inverse matrix

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

dgbmatrix*dgbmatrix operator

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

dgbmatrix*_dgbmatrix operator

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

_dgbmatrix*dgbmatrix operator

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

dgbmatrix*dgematrix operator

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

dgbmatrix*_dgematrix operator

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

dgematrix*dgbmatrix operator

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

_dgematrix*dgbmatrix operator

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

dgbmatrix*dsymatrix operator

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

dgbmatrix*_dsymatrix operator

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

dsymatrix*dgbmatrix operator

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

_dgematrix*dgbmatrix operator

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

dgbmatrix*dssmatrix operator

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

dgbmatrix*_dssmatrix operator

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

dssmatrix*dgbmatrix operator

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

_dssmatrix*dgbmatrix operator

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

dgbmatrix*dcovector operator

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

dgbmatrix*_dcovector operator

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

drovector*dgbmatrix operator

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

_drovector*dgbmatrix operator

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

dgbmatrix*double operator

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

double*dgbmatrix operator

const dgbmatrix& operator+ ( const dgbmatrix mat)
friend

+dgbmatrix operator

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

dgbmatrix+dgbmatrix operator

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

dgbmatrix+_dgbmatrix operator

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

_dgbmatrix+dgbmatrix operator

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

dgbmatrix+dgematrix operator

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

dgbmatrix+_dgematrix operator

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

dgematrix+dgbmatrix operator

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

_dgematrix+dgbmatrix operator

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

dgbmatrix+dsymatrix operator

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

dgbmatrix+_dsymatrix operator

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

dsymatrix+dgbmatrix operator

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

_dsymatrix+dgbmatrix operator

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

dgbmatrix+dssmatrix operator

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

dgbmatrix+_dssmatrix operator

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

dssmatrix+dgbmatrix operator

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

_dssmatrix+dgbmatrix operator

_dgbmatrix operator- ( const dgbmatrix mat)
friend

-dgbmatrix operator

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

dgbmatrix-dgbmatrix operator

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

dgbmatrix-_dgbmatrix operator

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

_dgbmatrix-dgbmatrix operator

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

dgbmatrix-dgematrix operator

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

dgbmatrix-_dgematrix operator

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

dgematrix-dgbmatrix operator

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

_dgematrix-dgbmatrix operator

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

dgbmatrix-dsymatrix operator

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

dgbmatrix-_dsymatrix operator

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

dsymatrix-dgbmatrix operator

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

_dsymatrix-dgbmatrix operator

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

dgbmatrix-dssmatrix operator

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

dgbmatrix-_dssmatrix operator

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

dssmatrix-dgbmatrix operator

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

_dssmatrix-dgbmatrix operator

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

dgbmatrix/double operator

void swap ( dgbmatrix A,
dgbmatrix B 
)
friend

swap two matrices

_dgbmatrix t ( const dgbmatrix mat)
friend

return transposed dgbmatrix


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