◆ StorageFormat
template<typename DataType >
Enum class for determining the storage format.
◆ SparseMatrix() [1/5]
template<typename DataType >
◆ SparseMatrix() [2/5]
template<typename DataType >
◆ SparseMatrix() [3/5]
template<typename DataType >
◆ SparseMatrix() [4/5]
template<typename DataType >
◆ SparseMatrix() [5/5]
template<typename DataType >
◆ ~SparseMatrix()
template<typename DataType >
◆ add()
template<typename DataType >
void TBTK::SparseMatrix< DataType >::add |
( |
unsigned int |
row, |
|
|
unsigned int |
col, |
|
|
const DataType & |
value |
|
) |
| |
|
inline |
◆ construct()
template<typename DataType >
Construct the sparse matrix.
◆ constructCSX()
template<typename DataType >
Construct matrix on compressed sparse row format (CSR).
◆ constructLIL()
template<typename DataType >
std::vector< std::vector<std::tuple<unsigned int, DataType> > > TBTK::SparseMatrix< DataType >::constructLIL |
( |
| ) |
|
Construct list of lists (LIL) from dictionaryOfKeys.
◆ convertCSXToLIL()
template<typename DataType >
Adds all matrix elements constructed on CSR/CSC format to LIL. Used when a matrix is reconstructed either because new elements has been added, or because the format of the matrix is being changed.
◆ getCSCColumnPointers()
template<typename DataType >
◆ getCSCNumMatrixElements()
template<typename DataType >
Get number of CSC matrix elements.
◆ getCSCRows()
template<typename DataType >
◆ getCSCValues()
template<typename DataType >
◆ getCSRColumns()
template<typename DataType >
◆ getCSRNumMatrixElements()
template<typename DataType >
Get number of CSR matrix elements.
◆ getCSRRowPointers()
template<typename DataType >
◆ getCSRValues()
template<typename DataType >
◆ getNumColumns()
template<typename DataType >
◆ getNumRows()
template<typename DataType >
◆ hermitianConjugate()
template<typename DataType >
Calculate the Hermitian conjugate of the matrix.
- Returns
- A new matrix containing the Hermitian cojugate of the matrix.
◆ mergeLIL()
template<typename DataType >
void TBTK::SparseMatrix< DataType >::mergeLIL |
( |
std::vector< std::vector< std::tuple< unsigned int, DataType >> > & |
listOfLists | ) |
const |
|
inline |
Merge list of lists (LIL) entries with the same row and column indices.
◆ multiply()
template<typename DataType >
Helper function for operator*() that performs the actual matrix multiplication.
- Parameters
-
rhs | The left hand side in the matrix multiplication. |
rhs | The right hand side in the matrix multiplication. |
result | The SparseMatrix to store the result in. |
◆ operator*() [1/2]
template<typename DataType >
Multiplication operator.
- Parameters
-
rhs | The right hand side of the expression. |
- Returns
- A new SparseMatrix that is the product of this SparseMatrix and the right hand side.
◆ operator*() [2/2]
template<typename DataType >
Multiplication operator.
- Parameters
-
rhs | The right hand side of the expression. |
- Returns
- A new SparseMatrix that is the product of this SparseMatrix and the right hand side.
◆ operator*=()
template<typename DataType >
Multiplication assignment operator.
- Parameters
-
rhs | The right hand side of the expression. |
- Returns
- The left hand side after the right hand side has been multiplied in.
◆ operator+()
template<typename DataType >
Addition operator.
- Parameters
-
rhs | The right hand side of the expression. |
- Returns
- A new SparseMatrix that is the sum of this SparseMatrix and the right hand side.
◆ operator+=()
template<typename DataType >
Addition assignment operator.
- Parameters
-
rhs | The right hand side of the expression. |
- Returns
- The left hand side after the right hand side has been added.
◆ operator-()
template<typename DataType >
Subtraction operator.
- Parameters
-
rhs | The right hand side of the expression. |
- Returns
- A new SparseMatrix that is the difference between this SparseMatrix and the right hand side.
◆ operator-=()
template<typename DataType >
Subtraction assignment operator.
- Parameters
-
rhs | The right hand side of the expression. |
- Returns
- The left hand side after the right hand side has been subtracted.
◆ operator=() [1/2]
template<typename DataType >
◆ operator=() [2/2]
template<typename DataType >
Move assignment operator.
◆ print()
template<typename DataType >
◆ setStorageFormat()
template<typename DataType >
◆ sortLIL()
template<typename DataType >
void TBTK::SparseMatrix< DataType >::sortLIL |
( |
std::vector< std::vector< std::tuple< unsigned int, DataType >> > & |
listOfLists | ) |
const |
|
inline |
Sort list of lists (LIL).
◆ trace()
template<typename DataType >
Calculate the trace.
- Returns
- The trace of the matrix.
◆ operator*
template<typename DataType >
Multiplication operator.
- Parameters
-
lhs | The left hand side of the expression. |
rhs | The right hand side of the expression. |
- Returns
- A new SparseMatrix that is the product of the left and right hand side.
The documentation for this class was generated from the following file: