MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
TransitionModelMappingSparse.cpp
Go to the documentation of this file.
1
28
#include "
TransitionModelMappingSparse.h
"
29
30
using namespace
std;
31
32
TransitionModelMappingSparse::TransitionModelMappingSparse
(
int
nrS,
int
nrJA) :
33
TransitionModelDiscrete
(nrS, nrJA)
34
{
35
SparseMatrix
*T;
36
for
(
int
a=0;a!=nrJA;++a)
37
{
38
T=
new
SparseMatrix
(nrS,nrS);
39
_m_T
.push_back(T);
40
}
41
}
42
43
TransitionModelMappingSparse::
44
TransitionModelMappingSparse
(
const
TransitionModelMappingSparse
& TM) :
45
TransitionModelDiscrete
(TM)
46
{
47
SparseMatrix
*T;
48
for
(
unsigned
int
a=0;a!=TM.
_m_T
.size();++a)
49
{
50
T=
new
SparseMatrix
(*TM.
_m_T
[a]);
51
_m_T
.push_back(T);
52
}
53
}
54
55
TransitionModelMappingSparse::~TransitionModelMappingSparse
()
56
{
57
for
(vector<SparseMatrix*>::iterator it=
_m_T
.begin();
58
it!=
_m_T
.end(); ++it)
59
delete
(*it);
60
_m_T
.clear();
61
}
src
base
TransitionModelMappingSparse.cpp
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2