예제 #1
0
// Default constructor (protected)
DynamicalSystem::DynamicalSystem():
  _number(count++), _n(0), _stepsInMemory(1)
{
  zeroPlugin();
  _normRef = 1;
  _x.resize(2);
  _workspace.resize(sizeWorkV);
  _z.reset(new SiconosVector(1));
}
예제 #2
0
// From a minimum set of data
DynamicalSystem::DynamicalSystem(unsigned int newN):
  _number(count++), _n(newN), _stepsInMemory(1)
{
  zeroPlugin();
  _normRef = 1;
  _x.resize(2);
  _workspace.resize(sizeWorkV);
  _workspace[freeresidu].reset(new SiconosVector(getDim()));
  _r.reset(new SiconosVector(getDim()));
  _z.reset(new SiconosVector(1));
}
예제 #3
0
// Default constructor
Relation::Relation(RELATION::TYPES type,
                   RELATION::SUBTYPES subtype):
  _relationType(type), _subType(subtype)
{
  zeroPlugin();
}