GClasses

GClasses::GMatrixArray Class Reference

Represents an array of matrices or datasets that all have the same number of columns. More...

#include <GMatrix.h>

List of all members.

Public Member Functions

 GMatrixArray (sp_relation &pRelation)
 GMatrixArray (size_t cols)
 ~GMatrixArray ()
std::vector< GMatrix * > & sets ()
GMatrixnewSet (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

Detailed Description

Represents an array of matrices or datasets that all have the same number of columns.


Constructor & Destructor Documentation

GClasses::GMatrixArray::GMatrixArray ( sp_relation pRelation)
GClasses::GMatrixArray::GMatrixArray ( size_t  cols)
GClasses::GMatrixArray::~GMatrixArray ( )

Member Function Documentation

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]

Member Data Documentation

std::vector<GMatrix*> GClasses::GMatrixArray::m_sets [protected]