46 #ifndef Xyce_N_DEV_Synapse2_h
47 #define Xyce_N_DEV_Synapse2_h
69 static const char *
name() {
return "Synapse";}
124 void registerLIDs(
const std::vector<int> & intLIDVecRef,
125 const std::vector<int> & extLIDVecRef );
137 const std::vector< std::vector<int> > &
jacobianStamp()
const;
138 void registerJacLIDs(
const std::vector< std::vector<int> > & jacLIDVec );
269 virtual bool updateState (
double * solVec,
double * staVec,
double * stoVec);
279 template <
typename ScalarT>
280 static ScalarT
PostCurrentEqu(
const ScalarT Vpost,
const ScalarT r,
const ScalarT g,
const ScalarT Erev)
282 ScalarT result = g * r * (Vpost - Erev);
286 template <
typename ScalarT>
287 static ScalarT
rEquF(
const ScalarT V,
const ScalarT r,
const ScalarT alpha,
const ScalarT beta,
288 const ScalarT Tmax,
const ScalarT Vthres)
293 result = (alpha * Tmax * (1.0 - r) - beta * r);