This is a matrix class for general band matrices. More...
#include <band_matrix.h>
Public Member Functions | |
Matrix () | |
Standard constructor. More... | |
Matrix (int n_, int kl_, int ku_, Noinit) | |
Matrix (int n_, int kl_, int ku_, Init ini=INIT, const AT &a=0) | |
Matrix (int n_, int kl_, int ku_, Eye ini, const AT &a=1) | |
Matrix (int m_, int n_, int kl_, int ku_, Noinit) | |
Matrix (int m_, int n_, int kl_, int ku_, Init ini=INIT, const AT &a=0) | |
Matrix (int m_, int n_, int kl_, int ku_, Eye ini, const AT &a=1) | |
Matrix (const Matrix< GeneralBand, Ref, Ref, AT > &A) | |
Copy Constructor. More... | |
Matrix (int n_, int kl_, int ku_, AT *ele_) | |
Regular Constructor. More... | |
~Matrix () | |
Destructor. | |
Matrix< GeneralBand, Ref, Ref, AT > & | resize () |
Matrix< GeneralBand, Ref, Ref, AT > & | resize (int n_, int kl_, int ku_, Noinit) |
Matrix< GeneralBand, Ref, Ref, AT > & | resize (int n, int kl, int ku=0, Init ini=INIT, const AT &a=0) |
Matrix< GeneralBand, Ref, Ref, AT > & | resize (int n, int kl, int ku, Eye ini, const AT &a=1) |
Matrix< GeneralBand, Ref, Ref, AT > & | operator= (const Matrix< GeneralBand, Ref, Ref, AT > &A) |
Assignment operator. More... | |
Matrix< GeneralBand, Ref, Ref, AT > & | operator<< (const Matrix< GeneralBand, Ref, Ref, AT > &A) |
Copy operator. More... | |
Matrix< GeneralBand, Ref, Ref, AT > & | operator>> (const Matrix< GeneralBand, Ref, Ref, AT > &A) |
Reference operator. More... | |
const AT & | operator() (int i, int j) const |
Element operator. More... | |
AT * | operator() () |
Pointer operator. More... | |
const AT * | operator() () const |
Pointer operator. More... | |
int | size () const |
Size. More... | |
int | rows () const |
Number of rows. More... | |
int | cols () const |
Number of columns. More... | |
const CBLAS_ORDER | blasOrder () const |
Storage convention. More... | |
const Vector< Ref, AT > | operator() (int i) const |
Diagonal operator. More... | |
Vector< Ref, AT > | operator() (int i) |
Diagonal operator. More... | |
Matrix< GeneralBand, Ref, Ref, AT > | copy () const |
Matrix duplicating. More... | |
Matrix< GeneralBand, Ref, Ref, AT > & | init (const AT &a=0) |
Initialization. More... | |
Matrix< GeneralBand, Ref, Ref, AT > & | init (Init, const AT &a=0) |
Matrix< GeneralBand, Ref, Ref, AT > & | init (Eye, const AT &a=1) |
Matrix< GeneralBand, Ref, Ref, AT > & | init (Noinit, const AT &a=0) |
operator std::vector< std::vector< AT > > () | |
Cast to std::vector<std::vector<AT> >. More... | |
This is a matrix class for general band matrices.
Template class Matrix with shape type GeneralBand and atomic type AT. The template parameter AT defines the atomic type of the matrix. Valid types are int, float, double, complex<float> and complex<double>
|
inline |
Standard constructor.
Constructs a band matrix with no size.
|
inline |
Copy Constructor.
Constructs a reference to the band matrix A.
A | The matrix that will be referenced. |
|
inline |
Regular Constructor.
Constructs a band matrix of size n x n with the pyhsical memory given by ele_.
n_ | The number of rows and columns. |
kl_ | The number of subdiagonals. |
ku_ | The number of superdiagonals. |
ele_ | The physical memory the matrix will point to. |
|
inline |
Storage convention.
Returns the blas-conform storage convention. The elements are stored in columnmajor form, i.e. the elements are stored columnwise.
|
inline |
Number of columns.
|
inline |
|
inline |
Initialization.
Initializes all elements of the calling matrix with the value given by a.
a | Value all elements will be initialized with. |
|
inline |
Cast to std::vector<std::vector<AT> >.
|
inline |
Element operator.
Returns a reference to the element in the i-th row and the j-th column.
i | The i-th row of the matrix |
j | The j-th column of the matrix |
|
inline |
Pointer operator.
Returns the pointer to the first element.
|
inline |
Pointer operator.
see operator()()
|
inline |
Diagonal operator.
See operator()(int)
|
inline |
Diagonal operator.
If i<0, the i-th subdiagonal is returned. Otherwise the i-th superdiagonal is returned.
i | The i-th super- and subdiagonal, respectively. |
|
inline |
Copy operator.
Copies the band matrix given by A.
A | The matrix to be copied. |
|
inline |
Assignment operator.
Copies the band matrix given by A by calling operator<<().
A | The matrix to be assigned. |
|
inline |
Reference operator.
References the band matrix given by A.
A | The matrix to be referenced. |
|
inline |
Number of rows.
|
inline |
Size.