#include <SparseBitmatrix.hpp>
Public Member Functions | |
SparseBitmatrix (int numRows) | |
SparseBitmatrix (int numRows, int rowCapacity) | |
SparseBitmatrix (int numRows, int *rowCapacities) | |
SparseBitmatrix (int numRows, int *rowCapacities, int *rowLabels) | |
~SparseBitmatrix () | |
int | nRows () const |
void | setNRows (int nRows) |
int & | rowLength (int row) const |
int * | rowValues (int row) const |
void | setRowLength (int row, int length) |
void | push_back (int row, int column) |
int | maxRowLength () const |
void | setMaxRowLength (int maxRowLength) |
int | computeMaxRowLength () |
ROW_T | rowLabel (int row) const |
void | setRowLabel (int row, ROW_T label) |
ROW_T * | getRowLabels () const |
int | capacity () const |
Return number of rows that maximally can be stored. | |
int | capacity (int row) const |
Return number of elements that maximally can be stored in a given row. | |
int * | capacities () const |
Return number of elements that maximally can be stored in a given row. | |
SparseBitvector & | getRow (int row) const |
DO NOT USE: is slow and opens up a memory leak ? If used with a copy constructor as SparseBitvector x(matrix.getRow(15)); increases instruction and data reference counts. | |
void | computeEmpiricalDensity (long &numCells, long &numUsedCells) const |
Increase given variables by the number of cells in this matrix and the number of used cells. | |
void | dump () const |
void | dumpStructure () const |
void | sortRows () |
int | filterMinimalRowLength (int minRowLength) |
Retain only rows with a given minimal row length. | |
int | filterMinimalRowLength_destroyStructure (int minRowLength) |
Retain only rows with a given minimal row length. | |
void | shiftRowStorage (int firstRow) |
Shift row storage s.t. | |
Private Attributes | |
int | numRows |
int ** | rows |
int | m_maxRowLength |
int * | rowLengths |
ROW_T * | rowLabels |
int | sizeRows |
int * | rowSizes |
Please note that maxRowLength
is not managed automatically (for efficiency).
Definition at line 30 of file SparseBitmatrix.hpp.
|
Definition at line 16 of file SparseBitmatrix.cpp. References m_maxRowLength, rowLabels, rowLengths, rows, rowSizes, and sizeRows. |
|
Definition at line 34 of file SparseBitmatrix.cpp. References m_maxRowLength, rowLabels, rowLengths, rows, rowSizes, and sizeRows. |
|
Definition at line 61 of file SparseBitmatrix.cpp. References m_maxRowLength, rowLabels, rowLengths, rows, rowSizes, and sizeRows. |
|
Definition at line 99 of file SparseBitmatrix.cpp. References m_maxRowLength, rowLengths, rows, rowSizes, and sizeRows. |
|
Definition at line 137 of file SparseBitmatrix.cpp. References rowLabels, rowLengths, rows, rowSizes, and sizeRows. |
|
Return number of elements that maximally can be stored in a given row.
Definition at line 135 of file SparseBitmatrix.hpp. References rowSizes. |
|
Return number of elements that maximally can be stored in a given row.
Definition at line 126 of file SparseBitmatrix.hpp. |
|
Return number of rows that maximally can be stored.
Definition at line 121 of file SparseBitmatrix.hpp. References sizeRows. |
|
Increase given variables by the number of cells in this matrix and the number of used cells.
Definition at line 272 of file SparseBitmatrix.cpp. References numRows, rowLengths, and rows. |
|
Definition at line 96 of file SparseBitmatrix.hpp. References m_maxRowLength, and rowLengths. Referenced by Eclat< TRANSACTION_READER, PATTERN_WRITER >::findFrequentPatterns(). |
|
Definition at line 199 of file SparseBitmatrix.cpp. References numRows, rowLabels, rowLengths, rows, rowSizes, and sizeRows. Referenced by Eclat< TRANSACTION_READER, PATTERN_WRITER >::depthFirstWalk(), and Eclat< TRANSACTION_READER, PATTERN_WRITER >::findFrequentPatterns(). |
|
Definition at line 243 of file SparseBitmatrix.cpp. References numRows, rowLengths, rowSizes, and sizeRows. |
|
Retain only rows with a given minimal row length. (Re)computes maxRowLength as a side-effect.
Definition at line 305 of file SparseBitmatrix.cpp. References m_maxRowLength, numRows, rowLabels, rowLengths, rows, and rowSizes. |
|
Retain only rows with a given minimal row length. (Re)computes maxRowLength as a side-effect.
Definition at line 335 of file SparseBitmatrix.cpp. References m_maxRowLength, numRows, rowLabels, rowLengths, rows, and rowSizes. |
|
DO NOT USE: is slow and opens up a memory leak ? If used with a copy constructor as SparseBitvector x(matrix.getRow(15)); increases instruction and data reference counts.
Definition at line 145 of file SparseBitmatrix.hpp. References rowLengths, rows, and rowSizes. |
|
Definition at line 114 of file SparseBitmatrix.hpp. |
|
Definition at line 94 of file SparseBitmatrix.hpp. References m_maxRowLength. Referenced by Eclat< TRANSACTION_READER, PATTERN_WRITER >::depthFirstWalk(). |
|
|
Definition at line 86 of file SparseBitmatrix.hpp. References rowLengths, rows, and rowSizes. Referenced by createSparseItemTransactionIncidenceMatrix(). |
|
|
Definition at line 44 of file SparseBitmatrix.hpp. References rowLengths, and sizeRows. Referenced by Eclat< TRANSACTION_READER, PATTERN_WRITER >::checkUpToTwoRows(), Eclat< TRANSACTION_READER, PATTERN_WRITER >::depthFirstWalk(), and Eclat< TRANSACTION_READER, PATTERN_WRITER >::findFrequentPatterns(). |
|
Definition at line 49 of file SparseBitmatrix.hpp. |
|
Definition at line 95 of file SparseBitmatrix.hpp. References m_maxRowLength. Referenced by intersectSparseBitmatrix(), setdifferenceBySparseBitmatrix(), and setdifferenceOfSparseBitmatrix(). |
|
Definition at line 39 of file SparseBitmatrix.hpp. References sizeRows. Referenced by intersectSparseBitmatrix(), setdifferenceBySparseBitmatrix(), and setdifferenceOfSparseBitmatrix(). |
|
Definition at line 109 of file SparseBitmatrix.hpp. Referenced by intersectSparseBitmatrix(), setdifferenceBySparseBitmatrix(), and setdifferenceOfSparseBitmatrix(). |
|
Definition at line 54 of file SparseBitmatrix.hpp. References rowLengths, rowSizes, and sizeRows. |
|
Shift row storage s.t. given row is row 0. Release memory for all rows before. |
|
|
|
Definition at line 199 of file SparseBitmatrix.hpp. Referenced by computeMaxRowLength(), filterMinimalRowLength(), filterMinimalRowLength_destroyStructure(), maxRowLength(), setMaxRowLength(), and SparseBitmatrix(). |
|
Definition at line 197 of file SparseBitmatrix.hpp. Referenced by cardinalitySetdifferenceBySparseBitmatrix_TwoRows(), computeEmpiricalDensity(), dump(), dumpStructure(), filterMinimalRowLength(), and filterMinimalRowLength_destroyStructure(). |
|
Definition at line 201 of file SparseBitmatrix.hpp. Referenced by dump(), filterMinimalRowLength(), filterMinimalRowLength_destroyStructure(), SparseBitmatrix(), and ~SparseBitmatrix(). |
|
Definition at line 200 of file SparseBitmatrix.hpp. Referenced by cardinalitySetdifferenceBySparseBitmatrix_TwoRows(), computeEmpiricalDensity(), computeMaxRowLength(), dump(), dumpStructure(), filterMinimalRowLength(), filterMinimalRowLength_destroyStructure(), getRow(), push_back(), rowLength(), setRowLength(), SparseBitmatrix(), and ~SparseBitmatrix(). |
|
Definition at line 198 of file SparseBitmatrix.hpp. Referenced by cardinalitySetdifferenceBySparseBitmatrix_TwoRows(), computeEmpiricalDensity(), dump(), filterMinimalRowLength(), filterMinimalRowLength_destroyStructure(), getRow(), push_back(), rowValues(), SparseBitmatrix(), and ~SparseBitmatrix(). |
|
Definition at line 205 of file SparseBitmatrix.hpp. Referenced by capacities(), capacity(), dump(), dumpStructure(), filterMinimalRowLength(), filterMinimalRowLength_destroyStructure(), getRow(), push_back(), setRowLength(), SparseBitmatrix(), and ~SparseBitmatrix(). |
|
Definition at line 204 of file SparseBitmatrix.hpp. Referenced by capacity(), dump(), dumpStructure(), rowLength(), rowValues(), setNRows(), setRowLength(), SparseBitmatrix(), and ~SparseBitmatrix(). |