This PR aims to clarify the buffering of the spiking variable z in the compute_gradient_function and comprises the following changes:
rename t_previous_spike to t_spike_previous to emphasize the relationship to t_spike
rename previous_z_buffer to z_previous_buffer and pre to z_current_buffer to emphasize the relationship to z
replace the while loop with a for loop in which t is locally defined and eprop_hist_it and t are incremented
change the position of t_spike and t_spike_previous + P_.eprop_isi_trace_cutoff_ in std::min since t_spike_previous is chronologically earlier than t_spike (to enhance readability)
This PR aims to clarify the buffering of the spiking variable
z
in thecompute_gradient_function
and comprises the following changes:t_previous_spike
tot_spike_previous
to emphasize the relationship tot_spike
previous_z_buffer
toz_previous_buffer
andpre
toz_current_buffer
to emphasize the relationship toz
while
loop with afor
loop in whicht
is locally defined andeprop_hist_it
andt
are incrementedt_spike
andt_spike_previous + P_.eprop_isi_trace_cutoff_
instd::min
sincet_spike_previous
is chronologically earlier thant_spike
(to enhance readability)