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 );
279 virtual bool updateState (
double * solVec,
double * staVec,
double * stoVec);
289 template <
typename ScalarT>
290 static ScalarT
PostCurrentEqu(
const ScalarT Vpost,
const ScalarT r,
const ScalarT g,
const ScalarT Erev)
292 ScalarT result = g * r * (Vpost - Erev);
296 template <
typename ScalarT>
297 static ScalarT
rEquF(
const ScalarT V,
const ScalarT r,
const ScalarT alpha,
const ScalarT beta,
298 const ScalarT Tmax,
const ScalarT Vthres)
303 result = (alpha * Tmax * (1.0 - r) - beta * r);