Public Member Functions | Public Attributes | Friends
momdp::DenseVector Class Reference

#include <DenseVector.h>

Inheritance diagram for momdp::DenseVector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

int argSampleDist ()
void copyFrom (const DenseVector &x)
 DenseVector (void)
 DenseVector (int _size)
DenseVectormult (SparseMatrix &A)
double norm_2 ()
double norm_inf ()
REAL_VALUEoperator() (unsigned int i)
REAL_VALUE operator() (unsigned int i) const
void operator*= (REAL_VALUE s)
void operator+= (const DenseVector &x)
void operator+= (const SparseVector &x)
void operator-= (const DenseVector &x)
void operator-= (const SparseVector &x)
void read (std::istream &in)
void resize (int _size, REAL_VALUE value)
void resize (int _size)
int size (void) const
string ToString () const
std::ostream & write (std::ostream &out) const
virtual ~DenseVector (void)

Public Attributes

vector< REAL_VALUEdata

Friends

class SparseMatrix
class SparseVector

Detailed Description

Definition at line 19 of file DenseVector.h.


Constructor & Destructor Documentation

Definition at line 14 of file DenseVector.cpp.

Definition at line 17 of file DenseVector.cpp.

momdp::DenseVector::~DenseVector ( void  ) [virtual]

Definition at line 21 of file DenseVector.cpp.


Member Function Documentation

Definition at line 74 of file DenseVector.cpp.

void momdp::DenseVector::copyFrom ( const DenseVector x) [inline]

Definition at line 33 of file DenseVector.h.

double momdp::DenseVector::norm_2 ( ) [inline]

Definition at line 70 of file DenseVector.h.

double momdp::DenseVector::norm_inf ( ) [inline]

Definition at line 59 of file DenseVector.h.

REAL_VALUE& momdp::DenseVector::operator() ( unsigned int  i) [inline]

Definition at line 40 of file DenseVector.h.

REAL_VALUE momdp::DenseVector::operator() ( unsigned int  i) const [inline]

Definition at line 45 of file DenseVector.h.

void momdp::DenseVector::operator*= ( REAL_VALUE  s)

Definition at line 67 of file DenseVector.cpp.

void momdp::DenseVector::operator+= ( const DenseVector x)
void momdp::DenseVector::operator+= ( const SparseVector x)
void momdp::DenseVector::operator-= ( const DenseVector x)
void momdp::DenseVector::operator-= ( const SparseVector x)
void momdp::DenseVector::read ( std::istream &  in)

Definition at line 112 of file DenseVector.cpp.

void momdp::DenseVector::resize ( int  _size,
REAL_VALUE  value 
)

Definition at line 94 of file DenseVector.cpp.

void momdp::DenseVector::resize ( int  _size)

Definition at line 105 of file DenseVector.cpp.

int momdp::DenseVector::size ( void  ) const [inline]

Definition at line 85 of file DenseVector.h.

string momdp::DenseVector::ToString ( ) const

Definition at line 146 of file DenseVector.cpp.

ostream & momdp::DenseVector::write ( std::ostream &  out) const

Definition at line 135 of file DenseVector.cpp.


Friends And Related Function Documentation

friend class SparseMatrix [friend]

Definition at line 21 of file DenseVector.h.

friend class SparseVector [friend]

Definition at line 22 of file DenseVector.h.


Member Data Documentation

Definition at line 24 of file DenseVector.h.


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


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:30