PLaSK library
|
Oversimple symmetric band matrix structure. More...
#include <solvers/gain/freecarrier/gauss_matrix.hpp>
Public Member Functions | |
DgbMatrix (size_t rank) | |
Create matrix. | |
DgbMatrix (const DgbMatrix &)=delete | |
~DgbMatrix () | |
size_t | index (size_t r, size_t c) |
Return index in data array. | |
double & | operator() (size_t r, size_t c) |
Return reference to array element. | |
void | clear () |
Clear the matrix. | |
void | mult (const DataVector< const double > &vector, DataVector< double > &result) |
Multiply matrix by vector. | |
void | addmult (const DataVector< const double > &vector, DataVector< double > &result) |
Multiply matrix by vector adding the result. | |
double | determinant () |
Compute matrix determinant. | |
Public Attributes | |
const size_t | size |
Order of the matrix, i.e. number of columns or rows. | |
double * | data |
Pointer to data. | |
Oversimple symmetric band matrix structure.
It only offers easy access to elements and nothing more. Data is stored in LAPACK format.
Definition at line 41 of file gauss_matrix.hpp.
|
inline |
|
inline |
Definition at line 54 of file gauss_matrix.hpp.
|
inline |
Multiply matrix by vector adding the result.
vector | vector to multiply |
result | multiplication result |
Definition at line 96 of file gauss_matrix.hpp.
|
inline |
Clear the matrix.
Definition at line 78 of file gauss_matrix.hpp.
|
inline |
Compute matrix determinant.
Definition at line 101 of file gauss_matrix.hpp.
|
inline |
Return index in data array.
r | index of the element row |
c | index of the element column |
Definition at line 61 of file gauss_matrix.hpp.
|
inline |
Multiply matrix by vector.
vector | vector to multiply |
result | multiplication result |
Definition at line 87 of file gauss_matrix.hpp.
|
inline |
Return reference to array element.
r | index of the element row |
c | index of the element column |
Definition at line 73 of file gauss_matrix.hpp.
double* plask::gain::freecarrier::DgbMatrix::data |
Pointer to data.
Definition at line 44 of file gauss_matrix.hpp.
const size_t plask::gain::freecarrier::DgbMatrix::size |
Order of the matrix, i.e. number of columns or rows.
Definition at line 43 of file gauss_matrix.hpp.