Matrix entry class. Stores by default only the row index it belongs to, but can also store its column index when the row access is enabled, as well as its value when they are different from only 0 and 1. Zero-valued entries are never made explicit in the matrix. More...
#include <gudhi/Persistence_matrix/columns/entry_types.h>
Public Types | |
using | Master = Master_matrix |
using | Index = typename Master_matrix::Index |
using | ID_index = typename Master_matrix::ID_index |
using | Field_element = typename Master_matrix::Element |
Public Member Functions | |
Entry () | |
Constructs an entry with all attributes at default values. | |
Entry (ID_index rowIndex) | |
Constructs an entry with given row index. Other possible attributes are set at default values. More... | |
Entry (Index columnIndex, ID_index rowIndex) | |
Constructs an entry with given row and column index. Other possible attributes are set at default values. More... | |
Entry (const Entry &entry) | |
Copy constructor. More... | |
Entry (Entry &&entry) noexcept | |
Move constructor. More... | |
ID_index | get_row_index () const |
Returns the row index stored in the entry. More... | |
void | set_row_index (ID_index rowIndex) |
Sets the row index stored in the entry. More... | |
Entry & | operator= (Entry other) |
Assign operator. | |
operator ID_index () const | |
Converts the entry into a row index. More... | |
operator std::pair< ID_index, Field_element > () const | |
Converts the entry into a pair of row index and entry value. More... | |
Friends | |
bool | operator< (const Entry &c1, const Entry &c2) |
Strictly smaller than comparator. More... | |
bool | operator== (const Entry &c1, const Entry &c2) |
Equality comparator. More... | |
Matrix entry class. Stores by default only the row index it belongs to, but can also store its column index when the row access is enabled, as well as its value when they are different from only 0 and 1. Zero-valued entries are never made explicit in the matrix.
Master_matrix | An instantiation of Matrix from which all types and options are deduced. |
using Gudhi::persistence_matrix::Entry< Master_matrix >::Field_element = typename Master_matrix::Element |
Value type.
using Gudhi::persistence_matrix::Entry< Master_matrix >::ID_index = typename Master_matrix::ID_index |
Row index type.
using Gudhi::persistence_matrix::Entry< Master_matrix >::Index = typename Master_matrix::Index |
Column index type.
using Gudhi::persistence_matrix::Entry< Master_matrix >::Master = Master_matrix |
Access to options from outside.
|
inline |
Constructs an entry with given row index. Other possible attributes are set at default values.
rowIndex | Row index of the entry. |
|
inline |
Constructs an entry with given row and column index. Other possible attributes are set at default values.
columnIndex | Column index of the entry. |
rowIndex | Row index of the entry. |
|
inline |
Copy constructor.
entry | Entry to copy. |
|
inlinenoexcept |
Move constructor.
entry | Entry to move. |
|
inline |
Returns the row index stored in the entry.
|
inline |
Converts the entry into a row index.
|
inline |
Converts the entry into a pair of row index and entry value.
|
inline |
Sets the row index stored in the entry.
rowIndex | Row index of the entry. |
|
friend |
Strictly smaller than comparator.
c1 | First entry to compare. |
c2 | Second entry to compare. |
|
friend |
Equality comparator.
c1 | First entry to compare. |
c2 | Second entry to compare. |