INMOST
Mathematical Modelling Toolkit
|
Class to store the sparse matrix row. More...
#include <inmost_sparse.h>
Classes | |
struct | entry_s |
Entry of the sparse matrix row. More... | |
Public Types | |
typedef struct INMOST::Sparse::Row::entry_s | entry |
Entry of the sparse matrix row. More... | |
typedef Entries::iterator | iterator |
typedef Entries::const_iterator | const_iterator |
typedef Entries::reverse_iterator | reverse_iterator |
typedef Entries::const_reverse_iterator | const_reverse_iterator |
Public Member Functions | |
std::string | GetAnnotation () |
void | SetAnnotation (std::string input) |
void | Report () |
void | SetMarker () |
void | RemMarker () |
bool | GetMarker () |
Row () | |
Row (const Row &other) | |
Row (entry *pbegin, entry *pend) | |
bool | HaveLock () |
void | Lock () |
void | Unlock () |
~Row () | |
Row & | operator= (Row const &other) |
INMOST_DATA_REAL_TYPE & | operator[] (INMOST_DATA_ENUM_TYPE i) |
The operator [] used to fill the sparse matrix row, but not to access individual elements of the row. More... | |
INMOST_DATA_REAL_TYPE | operator[] (INMOST_DATA_ENUM_TYPE i) const |
The operator [] used to access individual elements of the row. More... | |
void | Clear () |
Clear all data of the current row. More... | |
void | Swap (Row &other) |
INMOST_DATA_ENUM_TYPE | Size () const |
The size of the sparse row, i.e. the total number of nonzero elements. More... | |
bool | Empty () const |
INMOST_DATA_ENUM_TYPE & | GetIndex (INMOST_DATA_ENUM_TYPE k) |
INMOST_DATA_REAL_TYPE & | GetValue (INMOST_DATA_ENUM_TYPE k) |
INMOST_DATA_ENUM_TYPE | GetIndex (INMOST_DATA_ENUM_TYPE k) const |
INMOST_DATA_REAL_TYPE | GetValue (INMOST_DATA_ENUM_TYPE k) const |
iterator | Begin () |
iterator | End () |
const_iterator | Begin () const |
const_iterator | End () const |
reverse_iterator | rBegin () |
reverse_iterator | rEnd () |
const_reverse_iterator | rBegin () const |
const_reverse_iterator | rEnd () const |
INMOST_DATA_REAL_TYPE | RowVec (Vector &x) const |
Return the scalar product of the current sparse row by a dense Vector. More... | |
void | MoveRow (Row &new_pos) |
void | Zero () |
Set the vector entries by zeroes. More... | |
void | Push (INMOST_DATA_ENUM_TYPE ind, INMOST_DATA_REAL_TYPE val) |
void | Resize (INMOST_DATA_ENUM_TYPE size) |
void | Print () |
Static Public Member Functions | |
static __INLINE entry | make_entry (INMOST_DATA_ENUM_TYPE ind, INMOST_DATA_REAL_TYPE val) |
Public Attributes | |
char | annotation [MTX_ANNOTATION_SIZE] |
bool | modified_pattern |
Class to store the sparse matrix row.
Definition at line 90 of file inmost_sparse.h.
Definition at line 124 of file inmost_sparse.h.
Definition at line 126 of file inmost_sparse.h.
typedef struct INMOST::Sparse::Row::entry_s INMOST::Sparse::Row::entry |
Entry of the sparse matrix row.
Definition at line 123 of file inmost_sparse.h.
Definition at line 125 of file inmost_sparse.h.
INMOST::Sparse::Row::Row | ( | ) |
INMOST::Sparse::Row::Row | ( | const Row & | other | ) |
INMOST::Sparse::Row::~Row | ( | ) |
|
inline |
Definition at line 209 of file inmost_sparse.h.
|
inline |
|
inline |
Clear all data of the current row.
Definition at line 199 of file inmost_sparse.h.
|
inline |
|
inline |
Definition at line 210 of file inmost_sparse.h.
|
inline |
std::string INMOST::Sparse::Row::GetAnnotation | ( | ) |
|
inline |
|
inline |
|
inline |
Definition at line 142 of file inmost_sparse.h.
|
inline |
|
inline |
|
inline |
Definition at line 146 of file inmost_sparse.h.
|
inline |
Definition at line 154 of file inmost_sparse.h.
|
inlinestatic |
|
inline |
Definition at line 219 of file inmost_sparse.h.
|
inline |
The operator [] used to fill the sparse matrix row, but not to access individual elements of the row.
Definition at line 169 of file inmost_sparse.h.
|
inline |
The operator [] used to access individual elements of the row.
Definition at line 186 of file inmost_sparse.h.
|
inline |
|
inline |
Push specified element into sparse row. This function should be used only if the index is not repeated in the row.
Definition at line 224 of file inmost_sparse.h.
|
inline |
|
inline |
|
inline |
Definition at line 141 of file inmost_sparse.h.
|
inline |
|
inline |
|
inline |
|
inline |
Resize row to specified size. It is intended to be used together with non-const Row::GetIndex and Row::GetValue that allow for the modification of individual entries.
size | New size of the row. |
Definition at line 229 of file inmost_sparse.h.
INMOST_DATA_REAL_TYPE INMOST::Sparse::Row::RowVec | ( | Vector & | x | ) | const |
Return the scalar product of the current sparse row by a dense Vector.
void INMOST::Sparse::Row::SetAnnotation | ( | std::string | input | ) |
|
inline |
Definition at line 140 of file inmost_sparse.h.
|
inline |
The size of the sparse row, i.e. the total number of nonzero elements.
Definition at line 202 of file inmost_sparse.h.
void INMOST::Sparse::Row::Swap | ( | Row & | other | ) |
|
inline |
Definition at line 160 of file inmost_sparse.h.
|
inline |
Set the vector entries by zeroes.
Definition at line 221 of file inmost_sparse.h.
char INMOST::Sparse::Row::annotation[MTX_ANNOTATION_SIZE] |
Definition at line 94 of file inmost_sparse.h.
bool INMOST::Sparse::Row::modified_pattern |
Definition at line 128 of file inmost_sparse.h.