dgematrix Class Reference

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

#include <dgematrix.hpp>

List of all members.

Public Member Functions

 dgematrix ()
 dgematrix (const dgematrix &)
 dgematrix (const _dgematrix &)
 dgematrix (const dgbmatrix &)
 dgematrix (const _dgbmatrix &)
 dgematrix (const dsymatrix &)
 dgematrix (const _dsymatrix &)
 dgematrix (const dssmatrix &)
 dgematrix (const _dssmatrix &)
 dgematrix (const long &, const long &)
 dgematrix (const char *)
 ~dgematrix ()
 operator _zgematrix ()
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 dgematrix &)
void shallow_copy (const _dgematrix &)
void resize (const long &, const long &)
long dgesv (dgematrix &)
long dgesv (dcovector &)
long dgels (dgematrix &)
long dgels (dcovector &)
long dgels (dgematrix &, drovector &)
long dgels (dcovector &, double &)
long dgelss (dcovector &, dcovector &, long &, const double)
long dgelss (dgematrix &, dcovector &, long &, const double)
long dgeev (std::vector< double > &, std::vector< double > &)
long dgeev (std::vector< double > &, std::vector< double > &, std::vector< dcovector > &, std::vector< dcovector > &)
long dgeev (std::vector< double > &, std::vector< double > &, std::vector< drovector > &, std::vector< drovector > &)
long dggev (dgematrix &, std::vector< double > &, std::vector< double > &)
long dggev (dgematrix &, std::vector< double > &, std::vector< double > &, std::vector< dcovector > &, std::vector< dcovector > &)
long dggev (dgematrix &, std::vector< double > &, std::vector< double > &, std::vector< drovector > &, std::vector< drovector > &)
long dgesvd (dcovector &, dgematrix &, dgematrix &)
dgematrixoperator= (const dgematrix &)
dgematrixoperator+= (const dgematrix &)
dgematrixoperator-= (const dgematrix &)
dgematrixoperator*= (const dgematrix &)
dgematrixoperator= (const _dgematrix &)
dgematrixoperator+= (const _dgematrix &)
dgematrixoperator-= (const _dgematrix &)
dgematrixoperator*= (const _dgematrix &)
dgematrixoperator= (const dgbmatrix &)
dgematrixoperator+= (const dgbmatrix &)
dgematrixoperator-= (const dgbmatrix &)
dgematrixoperator*= (const dgbmatrix &)
dgematrixoperator= (const _dgbmatrix &)
dgematrixoperator+= (const _dgbmatrix &)
dgematrixoperator-= (const _dgbmatrix &)
dgematrixoperator*= (const _dgbmatrix &)
dgematrixoperator= (const dsymatrix &mat)
dgematrixoperator+= (const dsymatrix &mat)
dgematrixoperator-= (const dsymatrix &mat)
dgematrixoperator*= (const dsymatrix &mat)
dgematrixoperator= (const _dsymatrix &mat)
dgematrixoperator+= (const _dsymatrix &mat)
dgematrixoperator-= (const _dsymatrix &mat)
dgematrixoperator*= (const _dsymatrix &mat)
dgematrixoperator*= (const double &)
dgematrixoperator/= (const double &)

Public Attributes

long const & m
 matrix row size (readable)
long const & n
 matrix column size (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 dgbmatrix
class _dgbmatrix
class dsymatrix
class _dsymatrix
class dssmatrix
class _dssmatrix
class dcovector
class _dcovector
class drovector
class _drovector
std::ostream & operator<< (std::ostream &, const dgematrix &)
void swap (dgematrix &, dgematrix &)
_dgematrix _ (dgematrix &)
_dgematrix t (const dgematrix &)
_dgematrix i (const dgematrix &)
void idamax (long &, long &, const dgematrix &)
double damax (const dgematrix &)
const dgematrixoperator+ (const dgematrix &)
_dgematrix operator- (const dgematrix &)
_dgematrix operator+ (const dgematrix &, const dgematrix &)
_dgematrix operator+ (const dgematrix &, const _dgematrix &)
_dgematrix operator+ (const _dgematrix &, const dgematrix &)
_dgematrix operator+ (const dgematrix &, const dgbmatrix &)
_dgematrix operator+ (const dgematrix &, const _dgbmatrix &)
_dgematrix operator+ (const dgbmatrix &, const dgematrix &)
_dgematrix operator+ (const _dgbmatrix &, const dgematrix &)
_dgematrix operator+ (const dgematrix &, const dsymatrix &)
_dgematrix operator+ (const dgematrix &, const _dsymatrix &)
_dgematrix operator+ (const dsymatrix &, const dgematrix &)
_dgematrix operator+ (const _dsymatrix &, const dgematrix &)
_dgematrix operator+ (const dgematrix &, const dssmatrix &)
_dgematrix operator+ (const dgematrix &, const _dssmatrix &)
_dgematrix operator+ (const dssmatrix &, const dgematrix &)
_dgematrix operator+ (const _dssmatrix &, const dgematrix &)
_dgematrix operator- (const dgematrix &, const dgematrix &)
_dgematrix operator- (const dgematrix &, const _dgematrix &)
_dgematrix operator- (const _dgematrix &, const dgematrix &)
_dgematrix operator- (const dgematrix &, const dgbmatrix &)
_dgematrix operator- (const dgematrix &, const _dgbmatrix &)
_dgematrix operator- (const dgbmatrix &, const dgematrix &)
_dgematrix operator- (const _dgbmatrix &, const dgematrix &)
_dgematrix operator- (const dgematrix &, const dsymatrix &)
_dgematrix operator- (const dgematrix &, const _dsymatrix &)
_dgematrix operator- (const dsymatrix &, const dgematrix &)
_dgematrix operator- (const _dsymatrix &, const dgematrix &)
_dgematrix operator- (const dgematrix &, const dssmatrix &)
_dgematrix operator- (const dgematrix &, const _dssmatrix &)
_dgematrix operator- (const dssmatrix &, const dgematrix &)
_dgematrix operator- (const _dssmatrix &, const dgematrix &)
_dgematrix operator* (const dgematrix &, const dgematrix &)
_dgematrix operator* (const dgematrix &, const _dgematrix &)
_dgematrix operator* (const _dgematrix &, const dgematrix &)
_dgematrix operator* (const dgematrix &, const dgbmatrix &)
_dgematrix operator* (const dgematrix &, const _dgbmatrix &)
_dgematrix operator* (const dgbmatrix &, const dgematrix &)
_dgematrix operator* (const _dgbmatrix &, const dgematrix &)
_dgematrix operator* (const dsymatrix &, const dgematrix &)
_dgematrix operator* (const _dsymatrix &, const dgematrix &)
_dgematrix operator* (const dgematrix &, const dsymatrix &)
_dgematrix operator* (const dgematrix &, const _dsymatrix &)
_dgematrix operator* (const dssmatrix &, const dgematrix &)
_dgematrix operator* (const _dssmatrix &, const dgematrix &)
_dgematrix operator* (const dgematrix &, const dssmatrix &)
_dgematrix operator* (const dgematrix &, const _dssmatrix &)
_dcovector operator* (const dgematrix &, const dcovector &)
_dcovector operator* (const dgematrix &, const _dcovector &)
_drovector operator* (const drovector &, const dgematrix &)
_drovector operator* (const _drovector &, const dgematrix &)
_dgematrix operator* (const dgematrix &, const double &)
_dgematrix operator* (const double &, const dgematrix &)
_dgematrix operator/ (const dgematrix &, const double &)


Detailed Description

Real Double-precision General Dence Matrix Class.

Definition at line 3 of file dgematrix.hpp.


Constructor & Destructor Documentation

dgematrix::dgematrix (  )  [inline]

dgematrix constructor without arguments

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

References _drovector::Array.

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

dgematrix copy constructor

Definition at line 30 of file dgematrix-constructor.hpp.

References _drovector::Array, dcopy_, and i.

dgematrix::dgematrix ( const _dgematrix mat  )  [inline]

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

dgematrix constructor to cast dgbmatrix

Definition at line 82 of file dgematrix-constructor.hpp.

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

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

dgematrix::dgematrix ( const dsymatrix mat  )  [inline]

dgematrix constructor to cast dsymatrix

Definition at line 149 of file dgematrix-constructor.hpp.

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

dgematrix::dgematrix ( const _dsymatrix mat  )  [inline]

dgematrix::dgematrix ( const dssmatrix mat  )  [inline]

dgematrix constructor to cast dssmatrix

Definition at line 213 of file dgematrix-constructor.hpp.

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

dgematrix::dgematrix ( const _dssmatrix mat  )  [inline]

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

dgematrix constructor with size specification

Definition at line 277 of file dgematrix-constructor.hpp.

References _drovector::Array, and i.

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

dgematrix constructor with filename

Definition at line 310 of file dgematrix-constructor.hpp.

References _drovector::Array, and read().

dgematrix::~dgematrix (  )  [inline]

dgematrix destructor

Definition at line 336 of file dgematrix-constructor.hpp.

References _drovector::Array.


Member Function Documentation

void dgematrix::chsign (  )  [inline]

change sign(+/-) of the matrix

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

References _drovector::Array, and i.

void dgematrix::clear (  )  [inline]

clear all the matrix data and set the sizes 0

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

References _drovector::Array.

Referenced by dgels(), dgelss(), and operator=().

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

make a deep copy of the matrix

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

References _drovector::Array, dcopy_, and i.

Referenced by operator=().

long dgematrix::dgeev ( std::vector< double > &  wr,
std::vector< double > &  wi,
std::vector< drovector > &  vlr,
std::vector< drovector > &  vli 
) [inline]

calculate left eigenvalues and left eigenvectors
All of the arguments need not to be initialized. wr, wi, vrr, vri are overwitten and become real and imaginary part of left eigenvalues and left eigenvectors, respectively. This matrix is also overwritten.

Definition at line 519 of file dgematrix-lapack.hpp.

References _drovector::Array, dgeev_, and i.

long dgematrix::dgeev ( std::vector< double > &  wr,
std::vector< double > &  wi,
std::vector< dcovector > &  vrr,
std::vector< dcovector > &  vri 
) [inline]

calculate right eigenvalues and right eigenvectors
All of the arguments need not to be initialized. wr, wi, vrr, vri are overwitten and become real and imaginary part of right eigenvalues and right eigenvectors, respectively. This matrix is also overwritten.

Definition at line 453 of file dgematrix-lapack.hpp.

References _drovector::Array, dgeev_, and i.

long dgematrix::dgeev ( std::vector< double > &  wr,
std::vector< double > &  wi 
) [inline]

calculate eigenvalues
All of the arguments need not to be initialized. wr and wi are overwitten and become real and imaginary part of eigenvalues, respectively. This matrix is also overwritten.

Definition at line 410 of file dgematrix-lapack.hpp.

References _drovector::Array, and dgeev_.

long dgematrix::dgels ( dcovector vec,
double &  residual 
) [inline]

solve overdetermined or underdetermined A*x=y using dgels 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 246 of file dgematrix-lapack.hpp.

References _drovector::Array, dcovector::clear(), dgels_, i, CPPL::max(), CPPL::min(), and swap.

long dgematrix::dgels ( dgematrix mat,
drovector residual 
) [inline]

solve overdetermined or underdetermined A*X=Y using dgels 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 182 of file dgematrix-lapack.hpp.

References _drovector::Array, clear(), dgels_, i, CPPL::max(), CPPL::min(), drovector::resize(), swap, and drovector::zero().

long dgematrix::dgels ( dcovector vec  )  [inline]

solve overdetermined or underdetermined A*x=y using dgels

Definition at line 129 of file dgematrix-lapack.hpp.

References _drovector::Array, dcovector::clear(), dgels_, i, CPPL::max(), CPPL::min(), and swap.

long dgematrix::dgels ( dgematrix mat  )  [inline]

solve overdetermined or underdetermined A*X=Y using dgels

Definition at line 76 of file dgematrix-lapack.hpp.

References _drovector::Array, clear(), dgels_, i, CPPL::max(), CPPL::min(), and swap.

long dgematrix::dgelss ( dgematrix 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 dgelss

Definition at line 352 of file dgematrix-lapack.hpp.

References _drovector::Array, B(), clear(), dgelss_, i, CPPL::max(), CPPL::min(), dcovector::resize(), and swap.

long dgematrix::dgelss ( dcovector 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 dgelss

Definition at line 304 of file dgematrix-lapack.hpp.

References _drovector::Array, B(), dcovector::clear(), dgelss_, i, CPPL::max(), CPPL::min(), dcovector::resize(), and swap.

long dgematrix::dgesv ( dcovector vec  )  [inline]

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

Definition at line 40 of file dgematrix-lapack.hpp.

References _drovector::Array, and dgesv_.

long dgematrix::dgesv ( dgematrix mat  )  [inline]

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

Definition at line 6 of file dgematrix-lapack.hpp.

References _drovector::Array, and dgesv_.

Referenced by i().

long dgematrix::dgesvd ( dcovector S,
dgematrix U,
dgematrix VT 
) [inline]

compute the singular value decomposition (SVD)
The arguments are dcocector S, dgematrix 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 812 of file dgematrix-lapack.hpp.

References _drovector::Array, dgesvd_, CPPL::max(), CPPL::min(), resize(), and dcovector::resize().

long dgematrix::dggev ( dgematrix matB,
std::vector< double > &  wr,
std::vector< double > &  wi,
std::vector< drovector > &  vlr,
std::vector< drovector > &  vli 
) [inline]

calculate generalized eigenvalues and generalized left eigenvectors
All of the arguments don't need to be initialized. wr, wi, vlr and vli are overwitten and become real and imaginary part of generalized eigenvalue and generalized left eigenvector, respectively. This matrix and matB are also overwritten.

Definition at line 728 of file dgematrix-lapack.hpp.

References _drovector::Array, dggev_, and i.

long dgematrix::dggev ( dgematrix matB,
std::vector< double > &  wr,
std::vector< double > &  wi,
std::vector< dcovector > &  vrr,
std::vector< dcovector > &  vri 
) [inline]

calculate generalized eigenvalues and generalized right eigenvectors
All of the arguments don't need to be initialized. wr, wi, vrr and vri are overwitten and become real and imaginary part of generalized eigenvalue and generalized right eigenvector, respectively. This matrix and matB are also overwritten.

Definition at line 649 of file dgematrix-lapack.hpp.

References _drovector::Array, dggev_, and i.

long dgematrix::dggev ( dgematrix matB,
std::vector< double > &  wr,
std::vector< double > &  wi 
) [inline]

calculate generalized eigenvalues
All of the arguments don't need to be initialized. wr and wi are overwitten and become real and imaginary part of generalized eigenvalues, respectively. This matrix and matB are also overwritten.

Definition at line 591 of file dgematrix-lapack.hpp.

References _drovector::Array, dggev_, and i.

void dgematrix::identity (  )  [inline]

change the matrix into an identity matrix

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

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

Referenced by i().

dgematrix::operator _zgematrix (  )  [inline]

cast operator to _zgematrix

Definition at line 3 of file dgematrix-cast.hpp.

References _, array, zgematrix::array, and i.

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

operator() for const object

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

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

operator() for non-const object

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

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

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

dgematrix*=double operator

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

References _drovector::Array, and dscal_.

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

dgematrix*=_dsymatrix operator

Definition at line 87 of file dgematrix-_dsymatrix.hpp.

References _drovector::Array, _dsymatrix::Array, _dsymatrix::destroy(), dsymm_, _dsymatrix::N, and swap.

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

dgematrix*=dsymatrix operator

Definition at line 82 of file dgematrix-dsymatrix.hpp.

References _drovector::Array, dsymm_, and swap.

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

dgematrix*=_dgbmatrix operator

Definition at line 85 of file dgematrix-_dgbmatrix.hpp.

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

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

dgematrix*=dgbmatrix operator

Definition at line 83 of file dgematrix-dgbmatrix.hpp.

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

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

dgematrix*=_dgematrix operator

Definition at line 75 of file dgematrix-_dgematrix.hpp.

References _dgematrix::Array, _drovector::Array, _dgematrix::destroy(), dgemm_, _dgematrix::M, _dgematrix::N, and swap.

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

dgematrix operator*=

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

References _drovector::Array, dgemm_, and swap.

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

dgematrix+=_dsymatrix operator

Definition at line 29 of file dgematrix-_dsymatrix.hpp.

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

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

dgematrix+=dsymatrix operator

Definition at line 26 of file dgematrix-dsymatrix.hpp.

References i, and operator()().

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

dgematrix+=_dgbmatrix operator

Definition at line 28 of file dgematrix-_dgbmatrix.hpp.

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

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

dgematrix+=dgbmatrix operator

Definition at line 27 of file dgematrix-dgbmatrix.hpp.

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

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

dgematrix+=_dgematrix operator

Definition at line 25 of file dgematrix-_dgematrix.hpp.

References _dgematrix::Array, _drovector::Array, _dgematrix::destroy(), i, _dgematrix::M, and _dgematrix::N.

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

dgematrix+=dgematrix operator

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

References _drovector::Array, and i.

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

dgematrix-=_dsymatrix operator

Definition at line 58 of file dgematrix-_dsymatrix.hpp.

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

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

dgematrix-=dsymatrix operator

Definition at line 54 of file dgematrix-dsymatrix.hpp.

References i, and operator()().

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

dgematrix-=_dgbmatrix operator

Definition at line 57 of file dgematrix-_dgbmatrix.hpp.

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

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

dgematrix-=dgbmatrix operator

Definition at line 55 of file dgematrix-dgbmatrix.hpp.

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

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

dgematrix-=_dgematrix operator

Definition at line 50 of file dgematrix-_dgematrix.hpp.

References _dgematrix::Array, _drovector::Array, _dgematrix::destroy(), i, _dgematrix::M, and _dgematrix::N.

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

dgematrix operator-=

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

References _drovector::Array, and i.

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

dgematrix/=double operator

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

References _drovector::Array, and dscal_.

dgematrix & dgematrix::operator= ( const _dsymatrix mat  )  [inline]

dgematrix=_dsymatrix operator

Definition at line 3 of file dgematrix-_dsymatrix.hpp.

References _dsymatrix::Array, _drovector::Array, clear(), _dsymatrix::complete(), _dsymatrix::Darray, and _dsymatrix::N.

dgematrix & dgematrix::operator= ( const dsymatrix mat  )  [inline]

dgematrix=dsymatrix operator

Definition at line 3 of file dgematrix-dsymatrix.hpp.

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

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

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

dgematrix=dgbmatrix operator

Definition at line 3 of file dgematrix-dgbmatrix.hpp.

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

dgematrix & dgematrix::operator= ( const _dgematrix mat  )  [inline]

dgematrix=_dgematrix operator

Definition at line 3 of file dgematrix-_dgematrix.hpp.

References shallow_copy().

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

dgematrix=dgematrix operator

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

References _drovector::Array, and copy().

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

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

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

Referenced by dgematrix().

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

resize the matrix

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

References _drovector::Array, and i.

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

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

set value for const object

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

void dgematrix::shallow_copy ( const _dgematrix 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 dgematrix-misc.hpp.

References _dgematrix::Array, _drovector::Array, _dgematrix::Darray, _dgematrix::M, and _dgematrix::N.

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

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

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

References i, and operator()().

void dgematrix::zero (  )  [inline]

change the matrix into a zero matrix

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

References _drovector::Array, and i.

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


Friends And Related Function Documentation

_dgematrix _ ( dgematrix mat  )  [friend]

convert user object to smart-temporary object

Definition at line 176 of file dgematrix-misc.hpp.

Referenced by operator _zgematrix().

friend class _dcovector [friend]

Definition at line 202 of file dgematrix.hpp.

friend class _dgbmatrix [friend]

Definition at line 196 of file dgematrix.hpp.

friend class _dgematrix [friend]

Definition at line 194 of file dgematrix.hpp.

friend class _drovector [friend]

Definition at line 204 of file dgematrix.hpp.

friend class _dssmatrix [friend]

Definition at line 200 of file dgematrix.hpp.

friend class _dsymatrix [friend]

Definition at line 198 of file dgematrix.hpp.

double damax ( const dgematrix mat  )  [friend]

return its largest absolute value

Definition at line 67 of file dgematrix-calc.hpp.

friend class dcovector [friend]

Definition at line 201 of file dgematrix.hpp.

friend class dgbmatrix [friend]

Definition at line 195 of file dgematrix.hpp.

friend class drovector [friend]

Definition at line 203 of file dgematrix.hpp.

friend class dssmatrix [friend]

Definition at line 199 of file dgematrix.hpp.

friend class dsymatrix [friend]

Definition at line 197 of file dgematrix.hpp.

_dgematrix i ( const dgematrix mat  )  [friend]

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

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

Definition at line 53 of file dgematrix-calc.hpp.

_dgematrix operator* ( const double &  d,
const dgematrix mat 
) [friend]

double*dgematrix operator

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

_dgematrix operator* ( const dgematrix mat,
const double &  d 
) [friend]

dgematrix*double operator

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

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

_drovector*dgematrix operator

Definition at line 3 of file _drovector-dgematrix.hpp.

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

drovector*dgematrix operator

Definition at line 3 of file drovector-dgematrix.hpp.

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

dgematrix*_dcovector operator

Definition at line 3 of file dgematrix-_dcovector.hpp.

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

dgematrix*dcovector operator

Definition at line 3 of file dgematrix-dcovector.hpp.

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

dgematrix*_dssmatrix operator

Definition at line 61 of file dgematrix-_dssmatrix.hpp.

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

dgematrix*dssmatrix operator

Definition at line 59 of file dgematrix-dssmatrix.hpp.

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

_dssmatrix*dgematrix operator

Definition at line 61 of file _dssmatrix-dgematrix.hpp.

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

dssmatrix*dgematrix operator

Definition at line 59 of file dssmatrix-dgematrix.hpp.

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

dgematrix*_dsymatrix operator

Definition at line 179 of file dgematrix-_dsymatrix.hpp.

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

dgematrix*dsymatrix operator

Definition at line 173 of file dgematrix-dsymatrix.hpp.

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

_dsymatrix*dgematrix operator

Definition at line 63 of file _dsymatrix-dgematrix.hpp.

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

dsymatrix*dgematrix operator

Definition at line 62 of file dsymatrix-dgematrix.hpp.

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

_dgbmatrix*dgematrix operator

Definition at line 63 of file _dgbmatrix-dgematrix.hpp.

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

dgbmatrix*dgematrix operator

Definition at line 61 of file dgbmatrix-dgematrix.hpp.

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

dgematrix*_dgbmatrix operator

Definition at line 184 of file dgematrix-_dgbmatrix.hpp.

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

dgematrix*dgbmatrix operator

Definition at line 178 of file dgematrix-dgbmatrix.hpp.

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

_dgematrix*dgematrix operator

Definition at line 51 of file _dgematrix-dgematrix.hpp.

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

dgematrix*_dgematrix operator

Definition at line 157 of file dgematrix-_dgematrix.hpp.

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

dgematrix*dgematrix operator

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

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

_dssmatrix+dgematrix operator

Definition at line 3 of file _dssmatrix-dgematrix.hpp.

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

dssmatrix+dgematrix operator

Definition at line 3 of file dssmatrix-dgematrix.hpp.

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

dgematrix+_dssmatrix operator

Definition at line 3 of file dgematrix-_dssmatrix.hpp.

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

dgematrix+dssmatrix operator

Definition at line 3 of file dgematrix-dssmatrix.hpp.

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

_dsymatrix+dgematrix operator

Definition at line 3 of file _dsymatrix-dgematrix.hpp.

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

dsymatrix+dgematrix operator

Definition at line 3 of file dsymatrix-dgematrix.hpp.

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

dgematrix+_dsymatrix operator

Definition at line 119 of file dgematrix-_dsymatrix.hpp.

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

dgematrix+dsymatrix operator

Definition at line 113 of file dgematrix-dsymatrix.hpp.

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

_dgbmatrix+dgematrix operator

Definition at line 3 of file _dgbmatrix-dgematrix.hpp.

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

dgbmatrix+dgematrix operator

Definition at line 3 of file dgbmatrix-dgematrix.hpp.

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

dgematrix+_dgbmatrix operator

Definition at line 122 of file dgematrix-_dgbmatrix.hpp.

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

dgematrix+dgbmatrix operator

Definition at line 118 of file dgematrix-dgbmatrix.hpp.

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

_dgematrix+dgematrix operator

Definition at line 3 of file _dgematrix-dgematrix.hpp.

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

dgematrix+_dgematrix operator

Definition at line 107 of file dgematrix-_dgematrix.hpp.

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

dgematrix+dgematrix operator

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

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

+dgematrix operator

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

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

_dssmatrix-dgematrix operator

Definition at line 32 of file _dssmatrix-dgematrix.hpp.

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

dssmatrix-dgematrix operator

Definition at line 31 of file dssmatrix-dgematrix.hpp.

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

dgematrix-_dssmatrix operator

Definition at line 32 of file dgematrix-_dssmatrix.hpp.

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

dgematrix-dssmatrix operator

Definition at line 31 of file dgematrix-dssmatrix.hpp.

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

_dsymatrix-dgematrix operator

Definition at line 33 of file _dsymatrix-dgematrix.hpp.

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

dsymatrix-dgematrix operator

Definition at line 32 of file dsymatrix-dgematrix.hpp.

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

dgematrix-_dsymatrix operator

Definition at line 149 of file dgematrix-_dsymatrix.hpp.

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

dgematrix-dsymatrix operator

Definition at line 143 of file dgematrix-dsymatrix.hpp.

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

_dgbmatrix-dgematrix operator

Definition at line 33 of file _dgbmatrix-dgematrix.hpp.

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

dgbmatrix-dgematrix operator

Definition at line 32 of file dgbmatrix-dgematrix.hpp.

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

dgematrix-_dgbmatrix operator

Definition at line 153 of file dgematrix-_dgbmatrix.hpp.

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

dgematrix-dgbmatrix operator

Definition at line 148 of file dgematrix-dgbmatrix.hpp.

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

_dgematrix-dgematrix operator

Definition at line 27 of file _dgematrix-dgematrix.hpp.

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

dgematrix-_dgematrix operator

Definition at line 131 of file dgematrix-_dgematrix.hpp.

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

dgematrix-dgematrix operator

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

_dgematrix operator- ( const dgematrix mat  )  [friend]

-dgematrix operator

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

_dgematrix operator/ ( const dgematrix mat,
const double &  d 
) [friend]

dgematrix/double operator

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

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

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

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

swap two matrices

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

Referenced by dgels(), dgelss(), and operator*=().

_dgematrix t ( const dgematrix mat  )  [friend]

return transposed dgematrix

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


Member Data Documentation

double* const& dgematrix::array

1D array to store matrix data (readable)

Definition at line 16 of file dgematrix.hpp.

Referenced by operator _zgematrix(), and operator*().

double** const& dgematrix::darray

array of pointers of column head addresses (readable)

Definition at line 17 of file dgematrix.hpp.

long const& dgematrix::m

matrix row size (readable)

Definition at line 14 of file dgematrix.hpp.

Referenced by operator*(), operator-(), and t().

long const& dgematrix::n

matrix column size (readable)

Definition at line 15 of file dgematrix.hpp.

Referenced by operator*(), operator-(), and t().


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

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