Real Double-precision General Compressed Sparse Row (CSR) Matrix Class. More...
#include <dgrmatrix.hpp>
Public Member Functions | |
dgrmatrix () | |
dgrmatrix (const CPPL_INT &, const CPPL_INT &) | |
dgrmatrix (const dgrmatrix &) | |
dgrmatrix (const char *) | |
~dgrmatrix () | |
_dgematrix | to_dgematrix () const |
double | operator() (const CPPL_INT &, const CPPL_INT &) const |
double & | operator() (const CPPL_INT &, const CPPL_INT &) |
void | write (const char *) const |
void | read (const char *) |
void | clear () |
dgrmatrix & | zero () |
void | copy (const dgrmatrix &) |
bool | isListed (const CPPL_INT &, const CPPL_INT &) const |
void | checkup () |
CPPL_INT | pardiso (dcovector &) const |
CPPL_INT | dfgmres (dcovector &, const double) const |
CPPL_INT | ilut_dfgmres (dcovector &, const int, const double) const |
dgrmatrix & | operator= (const dgrmatrix &) |
dgrmatrix & | operator*= (const double &) |
dgrmatrix & | operator/= (const double &) |
Public Attributes | |
CPPL_INT | m |
matrix row size More... | |
CPPL_INT | n |
matrix column size More... | |
std::vector< double > | a |
matrix component values More... | |
std::vector< CPPL_INT > | ia |
rowIndex (NOT zero-based BUT one-based indexing) More... | |
std::vector< CPPL_INT > | ja |
columns (NOT zero-based BUT one-based indexing) More... | |
Friends | |
std::ostream & | operator<< (std::ostream &, const dgrmatrix &) |
void | swap (dgrmatrix &, dgrmatrix &) |
double | damax (const dgrmatrix &) |
dgrmatrix | operator* (const dgrmatrix &, const double &) |
dgrmatrix | operator* (const double &, const dgrmatrix &) |
_dcovector | operator* (const dgrmatrix &, const dcovector &) |
_dcovector | operator* (const dgrmatrix &, const _dcovector &) |
dgrmatrix | operator/ (const dgrmatrix &, const double &) |
Real Double-precision General Compressed Sparse Row (CSR) Matrix Class.
Definition at line 3 of file dgrmatrix.hpp.
|
inline |
|
inline |
|
inline |
dgrmatrix copy constructor
Definition at line 15 of file dgrmatrix-constructor.hpp.
References copy().
|
inline |
dgrmatrix constructor with filename
Definition at line 22 of file dgrmatrix-constructor.hpp.
References read().
|
inline |
dgrmatrix destructor
Definition at line 33 of file dgrmatrix-constructor.hpp.
|
inline |
cast to _zgrmatrix
convert to _dgematrix
Definition at line 28 of file dgrmatrix-cast.hpp.
References _(), a, i(), ia, ja, m, n, and dgematrix::zero().
|
inline |
operator() for const object
Definition at line 3 of file dgrmatrix-io.hpp.
References a, i(), ia, ja, m, and n.
|
inline |
operator() for const object
Definition at line 29 of file dgrmatrix-io.hpp.
References a, i(), ia, ja, m, and n.
|
inline |
Definition at line 89 of file dgrmatrix-io.hpp.
References a, ia, ja, m, and n.
|
inline |
Definition at line 121 of file dgrmatrix-io.hpp.
References a, ia, ja, m, and n.
Referenced by dgrmatrix().
|
inline |
clear all the matrix data and set the sizes 0
Definition at line 3 of file dgrmatrix-misc.hpp.
References a, ia, ja, m, and n.
|
inline |
change the matrix into a zero matrix with no change in structure
Definition at line 14 of file dgrmatrix-misc.hpp.
References a.
|
inline |
make a deep copy of the matrix
Definition at line 25 of file dgrmatrix-misc.hpp.
References a, ia, ja, m, and n.
Referenced by dgrmatrix().
|
inline |
check if the component is listed
Definition at line 36 of file dgrmatrix-misc.hpp.
References i(), ia, ja, m, and n.
|
inline |
health checkup
Definition at line 64 of file dgrmatrix-misc.hpp.
References a, ia, ja, m, and n.
|
inline |
solve A*x=b for real and unsymmetric matrix using Intel PARDISO.
The argument is dcovector b. b is overwritten and become the solution x. A is not overwritten.
Definition at line 7 of file dgrmatrix-pardiso.hpp.
References a, dcovector::array, ia, ja, dcovector::l, m, n, and swap.
|
inline |
solve A*x=b for real and unsymmetric matrix using DFGMRES of Intel RCI ISS without preconditioning.
The argument is dcovector b. b is overwritten and become the solution x. A is not overwritten.
Definition at line 7 of file dgrmatrix-rci.hpp.
References a, dcovector::array, damax, ia, ja, dcovector::l, m, n, swap, and dcovector::zero().
|
inline |
solve A*x=b for real and unsymmetric matrix using DFGMRES with ILUT precondition of Intel RCI ISS.
The argument is dcovector b. b is overwritten and become the solution x. A is not overwritten.
Definition at line 144 of file dgrmatrix-rci.hpp.
References a, dcovector::array, damax, ia, ja, dcovector::l, m, n, swap, and dcovector::zero().
|
inline |
|
inline |
|
friend |
Definition at line 60 of file dgrmatrix-io.hpp.
swap two matrices
Definition at line 105 of file dgrmatrix-misc.hpp.
Referenced by dfgmres(), ilut_dfgmres(), and pardiso().
|
friend |
return its largest absolute value
Definition at line 3 of file dgrmatrix-calc.hpp.
Referenced by dfgmres(), and ilut_dfgmres().
dgrmatrix*double operator
Definition at line 31 of file dgrmatrix-double.hpp.
double*dgrmatrix operator
Definition at line 3 of file double-dgrmatrix.hpp.
|
friend |
dgrmatrix*dcovector operator
Definition at line 3 of file dgrmatrix-dcovector.hpp.
|
friend |
dgrmatrix/double operator
Definition at line 45 of file dgrmatrix-double.hpp.
CPPL_INT dgrmatrix::m |
matrix row size
Definition at line 9 of file dgrmatrix.hpp.
Referenced by checkup(), clear(), copy(), dfgmres(), dgrmatrix(), ilut_dfgmres(), isListed(), operator()(), operator*(), operator<<(), pardiso(), read(), swap(), to_dgematrix(), dgsmatrix::to_dgrmatrix(), and write().
CPPL_INT dgrmatrix::n |
matrix column size
Definition at line 10 of file dgrmatrix.hpp.
Referenced by checkup(), clear(), copy(), dfgmres(), dgrmatrix(), ilut_dfgmres(), isListed(), operator()(), operator*(), operator<<(), pardiso(), read(), swap(), to_dgematrix(), dgsmatrix::to_dgrmatrix(), and write().
std::vector<double> dgrmatrix::a |
matrix component values
Definition at line 11 of file dgrmatrix.hpp.
Referenced by checkup(), clear(), copy(), damax(), dfgmres(), ilut_dfgmres(), operator()(), operator*(), operator*=(), operator-(), operator/(), operator/=(), operator<<(), pardiso(), read(), swap(), to_dgematrix(), dgsmatrix::to_dgrmatrix(), write(), zero(), and ~dgrmatrix().
std::vector<CPPL_INT> dgrmatrix::ia |
rowIndex (NOT zero-based BUT one-based indexing)
Definition at line 12 of file dgrmatrix.hpp.
Referenced by checkup(), clear(), copy(), dfgmres(), ilut_dfgmres(), isListed(), operator()(), operator*(), operator<<(), pardiso(), read(), swap(), to_dgematrix(), dgsmatrix::to_dgrmatrix(), write(), and ~dgrmatrix().
std::vector<CPPL_INT> dgrmatrix::ja |
columns (NOT zero-based BUT one-based indexing)
Definition at line 13 of file dgrmatrix.hpp.
Referenced by checkup(), clear(), copy(), dfgmres(), ilut_dfgmres(), isListed(), operator()(), operator*(), operator<<(), pardiso(), read(), swap(), to_dgematrix(), dgsmatrix::to_dgrmatrix(), write(), and ~dgrmatrix().