Namespaces | Defines | Functions
DenseVector.cpp File Reference
#include "DenseVector.h"
#include "SparseVector.h"
#include "SparseMatrix.h"
#include <iostream>
#include <cassert>
#include <sstream>
#include "MathLib.h"
Include dependency graph for DenseVector.cpp:

Go to the source code of this file.

Namespaces

namespace  momdp

Defines

#define DenseVector_Operator(OP)

Functions

 momdp::DenseVector_Operator (+=)
 momdp::DenseVector_Operator (-=)

Define Documentation

#define DenseVector_Operator (   OP)
Value:
void DenseVector::operator OP(const DenseVector& x)                     \
{                                                                                                                       \
        vector<REAL_VALUE>::const_iterator  xi;                 \
        assert( size() == x.size() );                                                   \
        xi = x.data.begin();                                                                    \
        FOREACH_NOCONST(REAL_VALUE, di,  data) {                    \
        (*di) OP (*xi);                                                                         \
        xi++;                                                                                           \
}                                                                                                               \
}

Definition at line 49 of file DenseVector.cpp.



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