Storm
A Modern Probabilistic Model Checker
|
#include <SparseMatrix.h>
Public Types | |
typedef IndexType | index_type |
typedef ValueType | value_type |
Public Member Functions | |
MatrixEntry (index_type column, value_type value) | |
Constructs a matrix entry with the given column and value. | |
MatrixEntry (std::pair< index_type, value_type > &&pair) | |
Move-constructs the matrix entry fro the given column-value pair. | |
MatrixEntry ()=default | |
MatrixEntry (MatrixEntry const &other)=default | |
MatrixEntry & | operator= (MatrixEntry const &other)=default |
MatrixEntry (MatrixEntry &&other)=default | |
MatrixEntry & | operator= (MatrixEntry &&other)=default |
index_type const & | getColumn () const |
Retrieves the column of the matrix entry. | |
void | setColumn (index_type const &column) |
Sets the column of the current entry. | |
value_type const & | getValue () const |
Retrieves the value of the matrix entry. | |
void | setValue (value_type const &value) |
Sets the value of the entry in the matrix. | |
std::pair< index_type, value_type > const & | getColumnValuePair () const |
Retrieves a pair of column and value that characterizes this entry. | |
MatrixEntry | operator* (value_type factor) const |
Multiplies the entry with the given factor and returns the result. | |
bool | operator== (MatrixEntry const &other) const |
bool | operator!= (MatrixEntry const &other) const |
Friends | |
template<typename IndexTypePrime , typename ValueTypePrime > | |
std::ostream & | operator<< (std::ostream &out, MatrixEntry< IndexTypePrime, ValueTypePrime > const &entry) |
Definition at line 41 of file SparseMatrix.h.
typedef IndexType storm::storage::MatrixEntry< IndexType, ValueType >::index_type |
Definition at line 43 of file SparseMatrix.h.
typedef ValueType storm::storage::MatrixEntry< IndexType, ValueType >::value_type |
Definition at line 44 of file SparseMatrix.h.
storm::storage::MatrixEntry< IndexType, ValueType >::MatrixEntry | ( | index_type | column, |
value_type | value | ||
) |
Constructs a matrix entry with the given column and value.
column | The column of the matrix entry. |
value | The value of the matrix entry. |
Definition at line 27 of file SparseMatrix.cpp.
storm::storage::MatrixEntry< IndexType, ValueType >::MatrixEntry | ( | std::pair< index_type, value_type > && | pair | ) |
Move-constructs the matrix entry fro the given column-value pair.
pair | The column-value pair from which to move-construct the matrix entry. |
Definition at line 32 of file SparseMatrix.cpp.
|
default |
|
default |
|
default |
IndexType const & storm::storage::MatrixEntry< IndexType, ValueType >::getColumn | ( | ) | const |
Retrieves the column of the matrix entry.
Definition at line 37 of file SparseMatrix.cpp.
std::pair< IndexType, ValueType > const & storm::storage::MatrixEntry< IndexType, ValueType >::getColumnValuePair | ( | ) | const |
Retrieves a pair of column and value that characterizes this entry.
Definition at line 57 of file SparseMatrix.cpp.
ValueType const & storm::storage::MatrixEntry< IndexType, ValueType >::getValue | ( | ) | const |
Retrieves the value of the matrix entry.
Definition at line 47 of file SparseMatrix.cpp.
bool storm::storage::MatrixEntry< IndexType, ValueType >::operator!= | ( | MatrixEntry< IndexType, ValueType > const & | other | ) | const |
Definition at line 72 of file SparseMatrix.cpp.
MatrixEntry< IndexType, ValueType > storm::storage::MatrixEntry< IndexType, ValueType >::operator* | ( | value_type | factor | ) | const |
Multiplies the entry with the given factor and returns the result.
factor | The factor with which to multiply the entry. |
Definition at line 62 of file SparseMatrix.cpp.
|
default |
|
default |
bool storm::storage::MatrixEntry< IndexType, ValueType >::operator== | ( | MatrixEntry< IndexType, ValueType > const & | other | ) | const |
Definition at line 67 of file SparseMatrix.cpp.
void storm::storage::MatrixEntry< IndexType, ValueType >::setColumn | ( | index_type const & | column | ) |
Sets the column of the current entry.
column | The column to set for this entry. |
Definition at line 42 of file SparseMatrix.cpp.
void storm::storage::MatrixEntry< IndexType, ValueType >::setValue | ( | value_type const & | value | ) |
Sets the value of the entry in the matrix.
value | The value that is to be set for this entry. |
Definition at line 52 of file SparseMatrix.cpp.
|
friend |
Definition at line 77 of file SparseMatrix.cpp.