|
fmatvec
0.0.0
|
This is a matrix class for sparse quadratic matrices. More...
#include <symmetric_sparse_matrix.h>
Public Types | |
| using | value_type = AT |
| using | shape_type = SymmetricSparse |
Public Member Functions | |
| Matrix () | |
| Standard constructor. More... | |
| Matrix (int n_, int k_, Noinit) | |
| Matrix (int n_, int k_, Init ini=INIT, const AT &a=AT()) | |
| Matrix (const Matrix< SymmetricSparse, Ref, Ref, AT > &A) | |
| Copy Constructor. More... | |
| Matrix (int n_, int k_, int *I_, int *J_, Init ini=INIT, const AT &a=AT()) | |
| ~Matrix ()=default | |
| Destructor. | |
|
Matrix< SymmetricSparse, Ref, Ref, AT > & | resize (int n_, int k_, Noinit) |
|
Matrix< SymmetricSparse, Ref, Ref, AT > & | resize (int n, int k, Init ini=INIT, const AT &a=AT()) |
| void | resize (int n, int m) |
| Resize a symmetric sparse matrix. | |
| Matrix< SymmetricSparse, Ref, Ref, AT > & | operator= (const Matrix< SymmetricSparse, Ref, Ref, AT > &A) |
| Assignment operator. More... | |
| template<class Type , class Row , class Col > | |
| Matrix< SymmetricSparse, Ref, Ref, AT > & | operator= (const Matrix< Type, Row, Col, AT > &A) |
| Assignment operator. More... | |
| Matrix< SymmetricSparse, Ref, Ref, AT > & | operator&= (Matrix< SymmetricSparse, Ref, Ref, AT > &A) |
| Reference operator. More... | |
| template<class Type , class Row , class Col > | |
| Matrix< SymmetricSparse, Ref, Ref, AT > & | operator<<= (const Matrix< Type, Row, Col, AT > &A) |
| Matrix assignment. More... | |
| const AT * | operator() () const |
| Pointer operator. More... | |
| AT * | operator() () |
| Pointer operator. More... | |
| AT & | operator() (int i, int j) |
| const AT & | operator() (int i, int j) const |
| AT & | e (int i, int j) |
| const AT & | e (int i, int j) const |
| int | pos (int i, int j) const |
| int | ldim () |
| const int * | Ip () const |
| Pointer operator. More... | |
| int * | Ip () |
| Pointer operator. More... | |
| const int * | Jp () const |
| Pointer operator. More... | |
| int * | Jp () |
| 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. | |
| Matrix< SymmetricSparse, Ref, Ref, AT > & | init (const AT &val) |
| Initialization. More... | |
|
Matrix< SymmetricSparse, Ref, Ref, AT > & | init (Init, const AT &a=AT()) |
|
Matrix< SymmetricSparse, Ref, Ref, AT > & | init (Noinit, const AT &a=AT()) |
| int | nonZeroElements () const |
Static Public Attributes | |
| static constexpr bool | isVector {false} |
This is a matrix class for sparse quadratic matrices.
Template class Matrix with shape type SymmetricSparse and atomic type AT. The matrix ist stored in compressed row-wise skyline format, BUT the diagonal elements are ALWAYS stored (even if they are zero) as the FIRST entry of each row. The template parameter AT defines the atomic type of the matrix. Valid types are int, float, double, complex<float> and complex<double>
|
inlineexplicit |
Standard constructor.
Constructs a matrix with no size.
|
inline |
Copy Constructor.
Constructs a reference to the matrix A.
| A | The matrix that will be referenced. |
|
inline |
Number of columns.
| Matrix< SymmetricSparse, Ref, Ref, AT > & fmatvec::Matrix< SymmetricSparse, Ref, Ref, AT >::init | ( | const AT & | val | ) |
Initialization.
Initializes all elements of the calling matrix with the value given by a.
| a | Value all elements will be initialized with. |
|
inline |
Pointer operator.
See Ip()
|
inline |
Pointer operator.
|
inline |
Pointer operator.
See Jp()
|
inline |
Pointer operator.
|
inline |
Reference operator.
References the sparse matrix given by A.
| A | The matrix to be referenced. |
|
inline |
Pointer operator.
See operator()()
|
inline |
Pointer operator.
Returns the pointer to the first element.
|
inline |
Matrix assignment.
Copies the sparse matrix given by A.
| A | The matrix to be copied. |
|
inline |
Assignment operator.
Copies the sparse matrix given by A.
| A | The matrix to be assigned. |
|
inline |
Assignment operator.
Copies the sparse matrix given by A.
| A | The matrix to be assigned. |
|
inline |
Number of rows.
|
inline |
Size.