#include <sparse_pattern.h>
Public Types | |
| typedef std::vector< Interval > | IntervalList |
Public Member Functions | |
| SparsePattern (const BasisInfoStruct &bis_) | |
| ~SparsePattern () | |
| void | add (int nRanges, const int(*range)[2]) |
| marks specified ranges as used. | |
| void | save (FILE *f) const |
| Save itself to the specified stream. | |
| void | load (FILE *f) |
| Load itself from the specified stream. | |
| const Column & | operator[] (int column) const |
| int | getColumnSize (int col) const |
| returns the number of stored elements for specified column. | |
| int | size () const |
| Returns the dimension of the pattern. | |
| int | sizeTotal () const |
| returns the total number of nonzero elements. | |
Private Attributes | |
| const BasisInfoStruct & | bis |
| Column * | ranges |
Classes | |
| struct | Column |
| struct | Interval |
| ranges are upper-exclusive: involve i: lo <= i < hi. More... | |
| typedef std::vector<Interval> SparsePattern::IntervalList |
| SparsePattern::SparsePattern | ( | const BasisInfoStruct & | bis_ | ) | [inline, explicit] |
| SparsePattern::~SparsePattern | ( | ) | [inline] |
| void SparsePattern::add | ( | int | nRanges, | |
| const int * | range[2] | |||
| ) |
marks specified ranges as used.
| int SparsePattern::getColumnSize | ( | int | col | ) | const [inline] |
returns the number of stored elements for specified column.
| void SparsePattern::load | ( | FILE * | f | ) |
Load itself from the specified stream.
| const Column& SparsePattern::operator[] | ( | int | column | ) | const [inline] |
| void SparsePattern::save | ( | FILE * | f | ) | const |
Save itself to the specified stream.
| int SparsePattern::size | ( | ) | const [inline] |
Returns the dimension of the pattern.
Auxiliary function.
| int SparsePattern::sizeTotal | ( | ) | const |
returns the total number of nonzero elements.
const BasisInfoStruct& SparsePattern::bis [private] |
Column* SparsePattern::ranges [private] |
1.4.7