Artifact ab49594ff5de11489bc7b61451f03dc5f28913edc09162002769e242c57f4de8:
- File mttroot/mtt/lib/cc/mtt_AlgebraicSolver.cc — part of check-in [9b3e5aebaa] at 2002-03-26 12:06:16 on branch origin/master — Changed initial solver value from 1.0 to 0.0. (user: geraint@users.sourceforge.net, size: 566) [annotate] [blame] [check-ins using] [more...]
#include "mtt_AlgebraicSolver.hh" ColumnVector MTT::AlgebraicSolver::solve (const ColumnVector &x, const ColumnVector &u, const double &t, const ColumnVector &par) { if (_nyz > 0) { _x = x; _uui.insert(u,0); _t = t; _par = par; _ui = ColumnVector(_nyz,0.0); Solve(); _uui.insert(_ui,_nu); } else { _uui = u; } return _uui; } ColumnVector MTT::AlgebraicSolver::eval (const ColumnVector &ui) { if (_nyz > 0) _uui.insert(ui,_nu); return mtt_ae(_x,_uui,_t,_par); }