ProteoWizard
Public Member Functions | Public Attributes
pwiz::eharmony::Matrix Struct Reference

#include <Matrix.hpp>

Inheritance diagram for pwiz::eharmony::Matrix:
pwiz::eharmony::NeighborJoiner

List of all members.

Public Member Functions

 Matrix ()
 Matrix (const int &r, const int &c)
 Matrix (const Matrix &m)
void insert (const double &value, const int &rowCoordinate, const int &columnCoordinate)
double access (const int &rowCoordinate, const int &columnCoordinate)
pair< int, int > getMinValLocation ()
ostream & write (ostream &os)

Public Attributes

vector< vector< double > > _rows
vector< vector< double > > _columns
multimap< double, pair< int,
int > > 
_data

Detailed Description

Definition at line 43 of file Matrix.hpp.


Constructor & Destructor Documentation

pwiz::eharmony::Matrix::Matrix ( )
inline

Definition at line 45 of file Matrix.hpp.

{}
pwiz::eharmony::Matrix::Matrix ( const int &  r,
const int &  c 
)
pwiz::eharmony::Matrix::Matrix ( const Matrix m)
inline

Definition at line 47 of file Matrix.hpp.

: _rows(m._rows), _columns(m._columns){}

Member Function Documentation

void pwiz::eharmony::Matrix::insert ( const double &  value,
const int &  rowCoordinate,
const int &  columnCoordinate 
)
double pwiz::eharmony::Matrix::access ( const int &  rowCoordinate,
const int &  columnCoordinate 
)
pair<int, int> pwiz::eharmony::Matrix::getMinValLocation ( )
inline

Definition at line 52 of file Matrix.hpp.

{ return min_element(_data.begin(), _data.end(), KeyLessThan())->second; } // if more than one location for the minimum element, returns the first one (lexically w.r.t. row/column indices
ostream& pwiz::eharmony::Matrix::write ( ostream &  os)

Member Data Documentation

vector<vector<double> > pwiz::eharmony::Matrix::_rows

Definition at line 54 of file Matrix.hpp.

vector<vector<double> > pwiz::eharmony::Matrix::_columns

Definition at line 55 of file Matrix.hpp.

multimap<double, pair<int,int> > pwiz::eharmony::Matrix::_data

Definition at line 57 of file Matrix.hpp.


The documentation for this struct was generated from the following file: