Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Impala::Core::Matrix::DistributedAccess Class Reference

This class handles the access to a distributed matrix (or array). More...

#include <DistributedAccess.h>

Inheritance diagram for Impala::Core::Matrix::DistributedAccess:

Inheritance graph
[legend]
Collaboration diagram for Impala::Core::Matrix::DistributedAccess:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DistributedAccess (String filenamebase, Core::Database::RawDataSet *set, Core::Database::RawDataSet *set2, int startNode, int nodeCount)
 ~DistributedAccess ()
bool Valid ()
int GetRows ()
int GetColumns ()
Table::QuidTableGetColumnQuids ()
Table::QuidTableGetRowQuids ()
void Subscribe ()
void Unsubscribe ()
int GetColumn (int index, double *buffer, int bufferlength)
int GetRow (int index, double *buffer, int bufferlength)
int GetDiagonal (double *buffer, int bufferlength)
void StartEventLoop ()
void CopyParts (Matrix::Mat *dst)
 This function copies the data of all its parts into the array at the 'correct' position.

Private Member Functions

bool ReadInfoFile (String filenamebase, Core::Database::RawDataSet *set, Core::Database::RawDataSet *set2)
void LoadParts (String filenamebase, Core::Database::RawDataSet *set, Core::Database::RawDataSet *set2)
void LoadQuids (String filenamebase, Core::Database::RawDataSet *set, Core::Database::RawDataSet *set2)
int GetPartNr (int rowpart, int columnpart)
int GetOwnerOfPart (int partNr)
Matrix::MatGetPart (int partNr)
int GetData (double *buffer, int bufferlength, Util::PropertySet &cmd, const std::vector< int > &parts)

Private Attributes

bool mValid
IndexConvertermRows
IndexConvertermColumns
int mStartNode
int mNodeCount
std::vector< Matrix::Mat * > mParts
Table::QuidTablemColumnQuids
Table::QuidTablemRowQuids
 ILOG_VAR_DEC

Classes

class  IndexConverter

Detailed Description

This class handles the access to a distributed matrix (or array).

A number of nodes load the parts and these nodes should respond to access requests. On these nodes the function StartEventLoop() should be called. Other nodes can access parts on other nodes by calling GetColumn() or GetDiagonal(). Because this class is created for use by the SVM these are the only accessors currently implemented.

Each class knows on what node a part is so communication can be kept to a minimum.

Definition at line 39 of file DistributedAccess.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 11:16:19 2010 for ImpalaSrc by  doxygen 1.5.1