|
Ocean
|
This class implements a triple object for matrix entries. More...
#include <SparseMatrix.h>
Public Member Functions | |
| Entry () | |
| Creates an invalid entry object. | |
| Entry (const size_t row, const size_t column, const T value) | |
| Creates a new entry object. | |
| size_t | row () const |
| Returns the row of this entry. | |
| size_t | column () const |
| Returns the column of this entry. | |
| T | value () const |
| Returns the value of this entry. | |
| bool | isValid () const |
| Returns whether this entry is valid. | |
| bool | operator< (const Entry &second) const |
| Compares two entries and returns whether this entry is 'lesser' than the second entry. | |
Static Public Member Functions | |
| static bool | hasOneEntry (const size_t rows, const size_t columns, const Entries &entries) |
| Checks whether a set of given entries have at least one entry in each row and in each column of a matrix with defined dimension. | |
Protected Attributes | |
| size_t | entryRow |
| The row of this entry. | |
| size_t | entryColumn |
| The column of this entry. | |
| T | entryValue |
| The value of this entry. | |
This class implements a triple object for matrix entries.
|
inline |
Creates an invalid entry object.
|
inline |
Creates a new entry object.
| row | The row of the entry |
| column | The column of the entry |
| value | The value of the entry |
|
inline |
Returns the column of this entry.
|
static |
Checks whether a set of given entries have at least one entry in each row and in each column of a matrix with defined dimension.
| rows | The number of rows of the matrix, with range [1, infinity) |
| columns | The number of columns of the matrix, with range [1, infinity) |
| entries | The entries to check |
|
inline |
Returns whether this entry is valid.
|
inline |
Compares two entries and returns whether this entry is 'lesser' than the second entry.
Beware: The result is composed only on the coordinate of this entry, not on the value (thus, two entries with same coordinate but different value count as identical).
| second | The second entry to compare |
|
inline |
Returns the row of this entry.
|
inline |
Returns the value of this entry.
|
protected |
The column of this entry.
|
protected |
The row of this entry.
|
protected |
The value of this entry.