MaxPlus::Vector Class Reference

#include <mpmatrix.h>

Collaboration diagram for MaxPlus::Vector:

List of all members.

Public Member Functions

 Vector (unsigned int size=0, MPTime value=MP_MINUSINFINITY)
 Vector (std::vector< MPTime > *v)
 ~Vector ()
unsigned int getSize (void) const
MPTime get (unsigned int row) const
void put (unsigned int row, MPTime value)
void toString (CString &outString, double scale=1.0) const
 Vector (const Vector &)
Vectoroperator= (const Vector &)
MPTime norm ()
void negate ()
MPTime normalize ()
Vectoradd (MPTime increase) const
void add (MPTime increase, Vector *result) const
void maximum (const Vector *matB, Vector *result) const
Vectoradd (const Vector *vecB) const
void add (const Vector *vecB, Vector *res) const
Vectoroperator+= (MPTime increase)
Vectoroperator-= (MPTime decrease)
bool compare (const Vector &v)
VectorincrementalMaximum (const Vector *vec)
MPTime minimalFiniteElement (unsigned int *itsPosition_Ptr=NULL) const

Private Attributes

vector< MPTimetable

Detailed Description

Vector, represents a MaxPlus column vector


Constructor & Destructor Documentation

MaxPlus::Vector::Vector ( unsigned int  size = 0,
MPTime  value = MP_MINUSINFINITY 
)

Construct a Maxplus vector of size

References table.

Referenced by add().

MaxPlus::Vector::Vector ( std::vector< MPTime > *  v  ) 

Construct a Maxplus vector from an std:vector

References table.

MaxPlus::Vector::~Vector (  ) 

Destructor of MaxPlus vector

MaxPlus::Vector::Vector ( const Vector other  ) 

copy constructor

References getSize(), and table.

Here is the call graph for this function:


Member Function Documentation

Vector * MaxPlus::Vector::add ( MPTime  increase  )  const

add scalar to vector

References getSize(), and Vector().

Referenced by add(), operator+=(), and operator-=().

Here is the call graph for this function:

void MaxPlus::Vector::add ( MPTime  increase,
Vector result 
) const

add scalar to vector

References getSize(), and put().

Here is the call graph for this function:

Vector * MaxPlus::Vector::add ( const Vector vecB  )  const

add vectors

References add(), getSize(), and Vector().

Here is the call graph for this function:

void MaxPlus::Vector::add ( const Vector vecB,
Vector res 
) const

Vector::add add vectors

References get(), getSize(), and put().

Here is the call graph for this function:

bool MaxPlus::Vector::compare ( const Vector v  ) 

Compare vectors up to MP_EPSILON

References get(), getSize(), and MaxPlus::MP_EPSILON.

Here is the call graph for this function:

Vector& MaxPlus::Vector::incrementalMaximum ( const Vector vec  )  [inline]

References maximum().

Here is the call graph for this function:

void MaxPlus::Vector::maximum ( const Vector vecB,
Vector result 
) const

max of vectors

References get(), getSize(), MaxPlus::MP_MAX(), and put().

Referenced by incrementalMaximum().

Here is the call graph for this function:

MPTime MaxPlus::Vector::minimalFiniteElement ( unsigned int *  itsPosition_Ptr = NULL  )  const

Get minimal finite element returns the smallest amoung the finite elements in the vector or MP_MINUSINFINITY if no finite elements exist itsPosition returns the index of the (a) smallest finite element is set to a pointer to unsigned int, otherwise set or defaults to NULL

References getSize(), MaxPlus::MP_ISMINUSINFINITY(), and MaxPlus::MP_MINUSINFINITY.

Here is the call graph for this function:

void MaxPlus::Vector::negate (  ) 

vector negate

References getSize(), MaxPlus::MP_MINUSINFINITY, and put().

Here is the call graph for this function:

MPTime MaxPlus::Vector::norm (  ) 

calculate vector norm

References getSize(), MaxPlus::MP_MAX(), and MaxPlus::MP_MINUSINFINITY.

Referenced by normalize().

Here is the call graph for this function:

MPTime MaxPlus::Vector::normalize (  ) 

normalize vector

References getSize(), MaxPlus::MP_MINUSINFINITY, norm(), and put().

Referenced by FSMSADF::MPExploreStateSpace::State::normalize().

Here is the call graph for this function:

Vector& MaxPlus::Vector::operator+= ( MPTime  increase  )  [inline]

References add().

Here is the call graph for this function:

Vector& MaxPlus::Vector::operator-= ( MPTime  decrease  )  [inline]

References add(), and MaxPlus::MP_ISMINUSINFINITY().

Here is the call graph for this function:

Vector & MaxPlus::Vector::operator= ( const Vector other  ) 

vector assignmnent

References getSize(), and table.

Here is the call graph for this function:

void MaxPlus::Vector::put ( unsigned int  row,
MPTime  value 
)
void MaxPlus::Vector::toString ( CString outString,
double  scale = 1.0 
) const

String representation of vector

References getSize(), and MaxPlus::timeToString().

Referenced by MaxPlus::VectorList::toString().

Here is the call graph for this function:


Member Data Documentation

vector<MPTime> MaxPlus::Vector::table [private]

Referenced by get(), getSize(), operator=(), put(), and Vector().


The documentation for this class was generated from the following files: