19#ifndef _RANDOM_SELECTION_IMPL_H_
20#define _RANDOM_SELECTION_IMPL_H_
31 UNUSED uint32_t time, UNUSED
spike_t spike) {
45 UNUSED uint32_t time, uint32_t *restrict population_id,
46 uint32_t *restrict sub_population_id, uint32_t *restrict neuron_id,
47 spike_t *restrict spike, uint32_t *restrict m_pop_index) {
53 *population_id = pop_id;
58 preapppop_info->total_no_atoms;
59 uint32_t subpop_id = 0;
61 for (uint32_t i = 0; i < preapppop_info->no_pre_vertices; i++) {
62 sum += preapppop_info->key_atom_info[i].n_atoms;
68 *sub_population_id = subpop_id;
75 *spike = kai->key | (n_id << kai->n_colour_bits);
76 *m_pop_index = kai->m_pop_index;
uint32_t spike_t
The type of a spike.
Partner selection rule common API.
uint32_t mars_kiss64_seed(mars_kiss64_seed_t seed)
static void partner_spike_received(uint32_t time, spike_t spike)
Notifies the rule that a spike has been received.
static bool potential_presynaptic_partner(uint32_t time, uint32_t *restrict population_id, uint32_t *restrict sub_population_id, uint32_t *restrict neuron_id, spike_t *restrict spike, uint32_t *restrict m_pop_index)
Choose the potential (remote) synaptic partner.
individual pre-synaptic sub-population information
table of individual pre-synaptic information
parameters of the synaptic rewiring model
rewiring_data_t rewiring_data
the instantiation of the rewiring data
pre_pop_info_table_t pre_info
pre-population information table