10 #ifndef __RD_BOUNDS_MATRIX_H__ 11 #define __RD_BOUNDS_MATRIX_H__ 14 #include <boost/smart_ptr.hpp> 105 for (i = 1; i <
d_nRows; i++) {
106 for (j = 0; j < i; j++) {
void setLowerBoundIfBetter(unsigned int i, unsigned int j, double val)
#define CHECK_INVARIANT(expr, mess)
virtual void setVal(unsigned int i, unsigned int j, double val)
sets a particular element of the matrix
SquareMatrix()
brief Square matrix of size N
boost::shared_ptr< BoundsMatrix > BoundsMatPtr
void setUpperBound(unsigned int i, unsigned int j, double val)
Set the lower bound between points i and j.
virtual double getVal(unsigned int i, unsigned int j) const
returns a particular element of the matrix
void setUpperBoundIfBetter(unsigned int i, unsigned int j, double val)
BoundsMatrix(unsigned int N)
double getUpperBound(unsigned int i, unsigned int j) const
Get the upper bound between points i and j.
#define URANGE_CHECK(x, hi)
void setLowerBound(unsigned int i, unsigned int j, double val)
Set the lower bound between points i and j.
Class to store the distance bound.
boost::shared_array< double > DATA_SPTR
double getLowerBound(unsigned int i, unsigned int j) const
Get the lower bound between points i and j.
BoundsMatrix(unsigned int N, DATA_SPTR data)