GClasses
|
Represents an array of matrices or datasets that all have the same number of columns. More...
#include <GMatrix.h>
Public Member Functions | |
GMatrixArray (sp_relation &pRelation) | |
GMatrixArray (size_t cols) | |
~GMatrixArray () | |
std::vector< GMatrix * > & | sets () |
GMatrix * | newSet (size_t rows) |
Adds a new dataset to the array and preallocates the specified number of rows. | |
void | newSets (size_t count, size_t rows) |
Adds count new datasets to the array, and preallocates the specified number of rows in each one. | |
void | flush () |
Deletes all the datasets. | |
size_t | largestSet () |
Returns the index of the largest data set. | |
Protected Attributes | |
sp_relation | m_pRelation |
std::vector< GMatrix * > | m_sets |
Represents an array of matrices or datasets that all have the same number of columns.
GClasses::GMatrixArray::GMatrixArray | ( | sp_relation & | pRelation | ) |
GClasses::GMatrixArray::GMatrixArray | ( | size_t | cols | ) |
GClasses::GMatrixArray::~GMatrixArray | ( | ) |
void GClasses::GMatrixArray::flush | ( | ) |
Deletes all the datasets.
size_t GClasses::GMatrixArray::largestSet | ( | ) |
Returns the index of the largest data set.
GMatrix* GClasses::GMatrixArray::newSet | ( | size_t | rows | ) |
Adds a new dataset to the array and preallocates the specified number of rows.
void GClasses::GMatrixArray::newSets | ( | size_t | count, |
size_t | rows | ||
) |
Adds count new datasets to the array, and preallocates the specified number of rows in each one.
std::vector<GMatrix*>& GClasses::GMatrixArray::sets | ( | ) | [inline] |
sp_relation GClasses::GMatrixArray::m_pRelation [protected] |
std::vector<GMatrix*> GClasses::GMatrixArray::m_sets [protected] |