#include <dgbmatrix.hpp>
Definition at line 3 of file dgbmatrix.hpp.
dgbmatrix::dgbmatrix | ( | ) | [inline] |
dgbmatrix constructor
Definition at line 3 of file dgbmatrix-constructor.hpp.
References _drovector::Array.
dgbmatrix::dgbmatrix | ( | const dgbmatrix & | mat | ) | [inline] |
dgbmatrix copy constructor
Definition at line 28 of file dgbmatrix-constructor.hpp.
References _drovector::Array, dcopy_, and i.
dgbmatrix::dgbmatrix | ( | const _dgbmatrix & | mat | ) | [inline] |
dgbmatrix constructor to cast _dgbmatrix
Definition at line 56 of file dgbmatrix-constructor.hpp.
References _dgbmatrix::Array, _drovector::Array, _dgbmatrix::Darray, _dgbmatrix::KL, _dgbmatrix::KU, _dgbmatrix::M, and _dgbmatrix::N.
dgbmatrix::dgbmatrix | ( | const long & | _m, | |
const long & | _n, | |||
const long & | _kl, | |||
const long & | _ku | |||
) | [inline] |
dgbmatrix constructor with size specification
Definition at line 79 of file dgbmatrix-constructor.hpp.
References _drovector::Array, and i.
dgbmatrix::dgbmatrix | ( | const char * | filename | ) | [inline] |
dgbmatrix constructor with filename
Definition at line 120 of file dgbmatrix-constructor.hpp.
References _drovector::Array, and read().
dgbmatrix::~dgbmatrix | ( | ) | [inline] |
dgbmatrix destructor
Definition at line 146 of file dgbmatrix-constructor.hpp.
References _drovector::Array.
void dgbmatrix::chsign | ( | ) | [inline] |
change sign(+/-) of the matrix
Definition at line 63 of file dgbmatrix-misc.hpp.
References _drovector::Array, and i.
void dgbmatrix::clear | ( | ) | [inline] |
clear all the matrix data and set the sizes 0
Definition at line 3 of file dgbmatrix-misc.hpp.
References _drovector::Array.
void dgbmatrix::copy | ( | const dgbmatrix & | mat | ) | [inline] |
make a deep copy of the matrix
Definition at line 74 of file dgbmatrix-misc.hpp.
References _drovector::Array, dcopy_, and i.
Referenced by operator=().
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 45 of file dgbmatrix-lapack.hpp.
References dgbsv_, i, CPPL::max(), CPPL::min(), operator()(), and swap.
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 5 of file dgbmatrix-lapack.hpp.
References dgbsv_, i, CPPL::max(), CPPL::min(), operator()(), and swap.
Referenced by i().
void dgbmatrix::identity | ( | ) | [inline] |
change the matrix into an identity matrix
Definition at line 41 of file dgbmatrix-misc.hpp.
References _drovector::Array, i, and operator()().
dgbmatrix::operator _zgbmatrix | ( | ) | [inline] |
cast operator to _zgbmatrix
Definition at line 3 of file dgbmatrix-cast.hpp.
References _, array, zgbmatrix::array, and i.
double dgbmatrix::operator() | ( | const long & | i, | |
const long & | j | |||
) | const [inline] |
operator() for const object
Definition at line 26 of file dgbmatrix-io.hpp.
double & dgbmatrix::operator() | ( | const long & | i, | |
const long & | j | |||
) | [inline] |
operator() for non-const object
Definition at line 3 of file dgbmatrix-io.hpp.
Referenced by dgbsv(), identity(), operator*=(), operator+=(), operator-=(), read(), and write().
dgbmatrix & dgbmatrix::operator*= | ( | const double & | d | ) | [inline] |
dgbmatrix*=double operator
Definition at line 3 of file dgbmatrix-double.hpp.
References _drovector::Array, and dscal_.
dgbmatrix & dgbmatrix::operator*= | ( | const _dgbmatrix & | mat | ) | [inline] |
dgbmatrix*=_dgbmatrix operator
Definition at line 120 of file dgbmatrix-_dgbmatrix.hpp.
References _dgbmatrix::destroy(), i, _dgbmatrix::KL, _dgbmatrix::KU, _dgbmatrix::M, CPPL::max(), CPPL::min(), _dgbmatrix::N, operator()(), swap, and zero().
dgbmatrix*=dgbmatrix operator
Definition at line 121 of file dgbmatrix-dgbmatrix.hpp.
References i, CPPL::max(), CPPL::min(), operator()(), swap, and zero().
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 21 of file dgbmatrix-_dgbmatrix.hpp.
References _dgbmatrix::destroy(), i, _dgbmatrix::KL, _dgbmatrix::KU, _dgbmatrix::M, CPPL::max(), CPPL::min(), _dgbmatrix::N, operator()(), swap, and zero().
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 24 of file dgbmatrix-dgbmatrix.hpp.
References i, CPPL::max(), CPPL::min(), operator()(), swap, and zero().
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 71 of file dgbmatrix-_dgbmatrix.hpp.
References _dgbmatrix::destroy(), i, _dgbmatrix::KL, _dgbmatrix::KU, _dgbmatrix::M, CPPL::max(), CPPL::min(), _dgbmatrix::N, operator()(), swap, and zero().
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 73 of file dgbmatrix-dgbmatrix.hpp.
References i, CPPL::max(), CPPL::min(), operator()(), swap, and zero().
dgbmatrix & dgbmatrix::operator/= | ( | const double & | d | ) | [inline] |
dgbmatrix/=double operator
Definition at line 16 of file dgbmatrix-double.hpp.
References _drovector::Array, and dscal_.
dgbmatrix & dgbmatrix::operator= | ( | const _dgbmatrix & | mat | ) | [inline] |
dgbmatrix=_dgbmatrix operator
Definition at line 3 of file dgbmatrix-_dgbmatrix.hpp.
References shallow_copy().
dgbmatrix=dgbmatrix operator
The left side matrix is overwritten thoroughly including band width.
Definition at line 4 of file dgbmatrix-dgbmatrix.hpp.
References _drovector::Array, and copy().
void dgbmatrix::read | ( | const char * | filename | ) | [inline] |
Definition at line 124 of file dgbmatrix-io.hpp.
References i, CPPL::max(), CPPL::min(), operator()(), and resize().
Referenced by dgbmatrix().
void dgbmatrix::resize | ( | const long & | _m, | |
const long & | _n, | |||
const long & | _kl, | |||
const long & | _ku | |||
) | [inline] |
resize the matrix
Definition at line 132 of file dgbmatrix-misc.hpp.
References _drovector::Array, and i.
Referenced by read().
void dgbmatrix::set | ( | const long & | i, | |
const long & | j, | |||
const double & | v | |||
) | const [inline] |
set value for const object
Definition at line 53 of file dgbmatrix-io.hpp.
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 107 of file dgbmatrix-misc.hpp.
References _dgbmatrix::Array, _drovector::Array, _dgbmatrix::Darray, _dgbmatrix::KL, _dgbmatrix::KU, _dgbmatrix::M, and _dgbmatrix::N.
Referenced by i(), and operator=().
void dgbmatrix::write | ( | const char * | filename | ) | const [inline] |
Definition at line 102 of file dgbmatrix-io.hpp.
References i, CPPL::max(), CPPL::min(), and operator()().
void dgbmatrix::zero | ( | ) | [inline] |
change the matrix into a zero matrix
Definition at line 29 of file dgbmatrix-misc.hpp.
References _drovector::Array, and i.
Referenced by operator*(), operator*=(), operator+(), operator+=(), operator-(), and operator-=().
_dgbmatrix _ | ( | dgbmatrix & | mat | ) | [friend] |
convert user object to smart-temporary object
Definition at line 183 of file dgbmatrix-misc.hpp.
Referenced by operator _zgbmatrix().
friend class _dcovector [friend] |
Definition at line 161 of file dgbmatrix.hpp.
friend class _dgbmatrix [friend] |
Definition at line 155 of file dgbmatrix.hpp.
friend class _dgematrix [friend] |
Definition at line 154 of file dgbmatrix.hpp.
friend class _drovector [friend] |
Definition at line 163 of file dgbmatrix.hpp.
friend class _dssmatrix [friend] |
Definition at line 159 of file dgbmatrix.hpp.
friend class _dsymatrix [friend] |
Definition at line 157 of file dgbmatrix.hpp.
friend class dcovector [friend] |
Definition at line 160 of file dgbmatrix.hpp.
friend class dgematrix [friend] |
Definition at line 153 of file dgbmatrix.hpp.
friend class drovector [friend] |
Definition at line 162 of file dgbmatrix.hpp.
friend class dssmatrix [friend] |
Definition at line 158 of file dgbmatrix.hpp.
friend class dsymatrix [friend] |
Definition at line 156 of file dgbmatrix.hpp.
_dgematrix i | ( | const dgbmatrix & | mat | ) | [friend] |
return its inverse matrix
Definition at line 22 of file dgbmatrix-calc.hpp.
Referenced by chsign(), copy(), dgbmatrix(), dgbsv(), identity(), operator _zgbmatrix(), operator*=(), operator+=(), operator-=(), read(), resize(), write(), and zero().
_dgbmatrix operator* | ( | const double & | d, | |
const dgbmatrix & | mat | |||
) | [friend] |
double*dgbmatrix operator
Definition at line 3 of file double-dgbmatrix.hpp.
_dgbmatrix operator* | ( | const dgbmatrix & | mat, | |
const double & | d | |||
) | [friend] |
dgbmatrix*double operator
Definition at line 33 of file dgbmatrix-double.hpp.
_drovector operator* | ( | const _drovector & | vec, | |
const dgbmatrix & | mat | |||
) | [friend] |
_drovector*dgbmatrix operator
Definition at line 3 of file _drovector-dgbmatrix.hpp.
_drovector operator* | ( | const drovector & | vec, | |
const dgbmatrix & | mat | |||
) | [friend] |
drovector*dgbmatrix operator
Definition at line 3 of file drovector-dgbmatrix.hpp.
_dcovector operator* | ( | const dgbmatrix & | mat, | |
const _dcovector & | vec | |||
) | [friend] |
dgbmatrix*_dcovector operator
Definition at line 3 of file dgbmatrix-_dcovector.hpp.
_dcovector operator* | ( | const dgbmatrix & | mat, | |
const dcovector & | vec | |||
) | [friend] |
dgbmatrix*dcovector operator
Definition at line 3 of file dgbmatrix-dcovector.hpp.
_dgematrix operator* | ( | const _dssmatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
_dssmatrix*dgbmatrix operator
Definition at line 67 of file _dssmatrix-dgbmatrix.hpp.
_dgematrix operator* | ( | const dssmatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
dssmatrix*dgbmatrix operator
Definition at line 65 of file dssmatrix-dgbmatrix.hpp.
_dgematrix operator* | ( | const dgbmatrix & | matA, | |
const _dssmatrix & | matB | |||
) | [friend] |
dgbmatrix*_dssmatrix operator
Definition at line 67 of file dgbmatrix-_dssmatrix.hpp.
_dgematrix operator* | ( | const dgbmatrix & | matA, | |
const dssmatrix & | matB | |||
) | [friend] |
dgbmatrix*dssmatrix operator
Definition at line 65 of file dgbmatrix-dssmatrix.hpp.
_dgematrix operator* | ( | const _dsymatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
_dgematrix*dgbmatrix operator
Definition at line 69 of file _dsymatrix-dgbmatrix.hpp.
_dgematrix operator* | ( | const dsymatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
dsymatrix*dgbmatrix operator
Definition at line 67 of file dsymatrix-dgbmatrix.hpp.
_dgematrix operator* | ( | const dgbmatrix & | matA, | |
const _dsymatrix & | matB | |||
) | [friend] |
dgbmatrix*_dsymatrix operator
Definition at line 69 of file dgbmatrix-_dsymatrix.hpp.
_dgematrix operator* | ( | const dgbmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dgbmatrix*dsymatrix operator
Definition at line 67 of file dgbmatrix-dsymatrix.hpp.
_dgematrix operator* | ( | const _dgematrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
_dgematrix*dgbmatrix operator
Definition at line 59 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 dgbmatrix & | matA, | |
const _dgematrix & | matB | |||
) | [friend] |
dgbmatrix*_dgematrix operator
Definition at line 65 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.
_dgbmatrix operator* | ( | const _dgbmatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
_dgbmatrix*dgbmatrix operator
Definition at line 96 of file _dgbmatrix-dgbmatrix.hpp.
_dgbmatrix operator* | ( | const dgbmatrix & | matA, | |
const _dgbmatrix & | matB | |||
) | [friend] |
dgbmatrix*_dgbmatrix operator
Definition at line 241 of file dgbmatrix-_dgbmatrix.hpp.
_dgbmatrix operator* | ( | const dgbmatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
dgbmatrix*dgbmatrix operator
Definition at line 228 of file dgbmatrix-dgbmatrix.hpp.
_dgematrix operator+ | ( | const _dssmatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
_dssmatrix+dgbmatrix operator
Definition at line 3 of file _dssmatrix-dgbmatrix.hpp.
_dgematrix operator+ | ( | const dssmatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
dssmatrix+dgbmatrix operator
Definition at line 3 of file dssmatrix-dgbmatrix.hpp.
_dgematrix operator+ | ( | const dgbmatrix & | matA, | |
const _dssmatrix & | matB | |||
) | [friend] |
dgbmatrix+_dssmatrix operator
Definition at line 3 of file dgbmatrix-_dssmatrix.hpp.
_dgematrix operator+ | ( | const dgbmatrix & | matA, | |
const dssmatrix & | matB | |||
) | [friend] |
dgbmatrix+dssmatrix operator
Definition at line 3 of file dgbmatrix-dssmatrix.hpp.
_dgematrix operator+ | ( | const _dsymatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
_dsymatrix+dgbmatrix operator
Definition at line 3 of file _dsymatrix-dgbmatrix.hpp.
_dgematrix operator+ | ( | const dsymatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
dsymatrix+dgbmatrix operator
Definition at line 3 of file dsymatrix-dgbmatrix.hpp.
_dgematrix operator+ | ( | const dgbmatrix & | matA, | |
const _dsymatrix & | matB | |||
) | [friend] |
dgbmatrix+_dsymatrix operator
Definition at line 3 of file dgbmatrix-_dsymatrix.hpp.
_dgematrix operator+ | ( | const dgbmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dgbmatrix+dsymatrix operator
Definition at line 3 of file dgbmatrix-dsymatrix.hpp.
_dgematrix operator+ | ( | const _dgematrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
_dgematrix+dgbmatrix operator
Definition at line 3 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 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.
_dgbmatrix operator+ | ( | const _dgbmatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
_dgbmatrix+dgbmatrix operator
Definition at line 3 of file _dgbmatrix-dgbmatrix.hpp.
_dgbmatrix operator+ | ( | const dgbmatrix & | matA, | |
const _dgbmatrix & | matB | |||
) | [friend] |
dgbmatrix+_dgbmatrix operator
Definition at line 160 of file dgbmatrix-_dgbmatrix.hpp.
_dgbmatrix operator+ | ( | const dgbmatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
dgbmatrix+dgbmatrix operator
Definition at line 160 of file dgbmatrix-dgbmatrix.hpp.
+dgbmatrix operator
Definition at line 3 of file dgbmatrix-unary.hpp.
_dgematrix operator- | ( | const _dssmatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
_dssmatrix-dgbmatrix operator
Definition at line 35 of file _dssmatrix-dgbmatrix.hpp.
_dgematrix operator- | ( | const dssmatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
dssmatrix-dgbmatrix operator
Definition at line 34 of file dssmatrix-dgbmatrix.hpp.
_dgematrix operator- | ( | const dgbmatrix & | matA, | |
const _dssmatrix & | matB | |||
) | [friend] |
dgbmatrix-_dssmatrix operator
Definition at line 35 of file dgbmatrix-_dssmatrix.hpp.
_dgematrix operator- | ( | const dgbmatrix & | matA, | |
const dssmatrix & | matB | |||
) | [friend] |
dgbmatrix-dssmatrix operator
Definition at line 34 of file dgbmatrix-dssmatrix.hpp.
_dgematrix operator- | ( | const _dsymatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
_dsymatrix-dgbmatrix operator
Definition at line 36 of file _dsymatrix-dgbmatrix.hpp.
_dgematrix operator- | ( | const dsymatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
dsymatrix-dgbmatrix operator
Definition at line 35 of file dsymatrix-dgbmatrix.hpp.
_dgematrix operator- | ( | const dgbmatrix & | matA, | |
const _dsymatrix & | matB | |||
) | [friend] |
dgbmatrix-_dsymatrix operator
Definition at line 36 of file dgbmatrix-_dsymatrix.hpp.
_dgematrix operator- | ( | const dgbmatrix & | matA, | |
const dsymatrix & | matB | |||
) | [friend] |
dgbmatrix-dsymatrix operator
Definition at line 35 of file dgbmatrix-dsymatrix.hpp.
_dgematrix operator- | ( | const _dgematrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
_dgematrix-dgbmatrix operator
Definition at line 31 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 dgbmatrix & | matA, | |
const _dgematrix & | matB | |||
) | [friend] |
dgbmatrix-_dgematrix operator
Definition at line 31 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.
_dgbmatrix operator- | ( | const _dgbmatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
_dgbmatrix-dgbmatrix operator
Definition at line 50 of file _dgbmatrix-dgbmatrix.hpp.
_dgbmatrix operator- | ( | const dgbmatrix & | matA, | |
const _dgbmatrix & | matB | |||
) | [friend] |
dgbmatrix-_dgbmatrix operator
Definition at line 206 of file dgbmatrix-_dgbmatrix.hpp.
_dgbmatrix operator- | ( | const dgbmatrix & | matA, | |
const dgbmatrix & | matB | |||
) | [friend] |
dgbmatrix-dgbmatrix operator
Definition at line 194 of file dgbmatrix-dgbmatrix.hpp.
_dgbmatrix operator- | ( | const dgbmatrix & | mat | ) | [friend] |
-dgbmatrix operator
Definition at line 15 of file dgbmatrix-unary.hpp.
_dgbmatrix operator/ | ( | const dgbmatrix & | mat, | |
const double & | d | |||
) | [friend] |
dgbmatrix/double operator
Definition at line 50 of file dgbmatrix-double.hpp.
std::ostream& operator<< | ( | std::ostream & | s, | |
const dgbmatrix & | mat | |||
) | [friend] |
Definition at line 79 of file dgbmatrix-io.hpp.
swap two matrices
Definition at line 167 of file dgbmatrix-misc.hpp.
Referenced by dgbsv(), operator*=(), operator+=(), and operator-=().
_dgbmatrix t | ( | const dgbmatrix & | mat | ) | [friend] |
return transposed dgbmatrix
Definition at line 3 of file dgbmatrix-calc.hpp.
double* const& dgbmatrix::array |
1D array to store matrix data (readable)
Definition at line 20 of file dgbmatrix.hpp.
Referenced by operator _zgbmatrix().
double** const& dgbmatrix::darray |
long const& dgbmatrix::kl |
lower band width (readable)
Definition at line 18 of file dgbmatrix.hpp.
Referenced by operator*(), and t().
long const& dgbmatrix::ku |
upper band width (readable)
Definition at line 19 of file dgbmatrix.hpp.
Referenced by operator*(), and t().
long const& dgbmatrix::m |
matrix row size (readable)
Definition at line 16 of file dgbmatrix.hpp.
Referenced by operator*(), and t().
long const& dgbmatrix::n |
matrix column size (readable)
Definition at line 17 of file dgbmatrix.hpp.
Referenced by operator*(), and t().