sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
Typedefs | Functions
synapse_structure_weight_impl.h File Reference

Synapses just hold weight. More...

#include "synapse_structure.h"

Go to the source code of this file.

Typedefs

typedef weight_t plastic_synapse_t
 Plastic synapse types are just weights;.
 
typedef weight_state_t update_state_t
 The update state is purely a weight state.
 
typedef weight_t final_state_t
 Both the weight and the synaptic word.
 

Functions

static update_state_t synapse_structure_get_update_state (plastic_synapse_t synaptic_word, index_t synapse_type)
 Get the update state from the synapse structure.
 
static final_state_t synapse_structure_get_final_state (update_state_t state)
 Get the final state from the update state.
 
static weight_t synapse_structure_get_final_weight (final_state_t final_state)
 Get the final weight from the final state.
 
static plastic_synapse_t synapse_structure_get_final_synaptic_word (final_state_t final_state)
 Get the final plastic synapse data from the final state.
 
static plastic_synapse_t synapse_structure_create_synapse (weight_t weight)
 Create the initial plastic synapse data.
 
static weight_t synapse_structure_get_weight (plastic_synapse_t synaptic_word)
 Get the current synaptic weight from the plastic synapse data.
 
static void synapse_structure_decay_weight (update_state_t *state, uint32_t decay)
 
static accum synapse_structure_get_update_weight (update_state_t state)
 

Detailed Description

Synapses just hold weight.

Definition in file synapse_structure_weight_impl.h.

Typedef Documentation

◆ plastic_synapse_t

typedef weight_t plastic_synapse_t

Plastic synapse types are just weights;.

Definition at line 26 of file synapse_structure_weight_impl.h.

◆ update_state_t

The update state is purely a weight state.

Definition at line 29 of file synapse_structure_weight_impl.h.

◆ final_state_t

typedef weight_t final_state_t

Both the weight and the synaptic word.

Definition at line 33 of file synapse_structure_weight_impl.h.

Function Documentation

◆ synapse_structure_get_update_state()

static update_state_t synapse_structure_get_update_state ( plastic_synapse_t  synaptic_word,
index_t  synapse_type 
)
inlinestatic

Get the update state from the synapse structure.

Parameters
[in]synaptic_wordThe plastic synapse data
[in]synapse_typeWhat (supported) type of synapse is this?
Returns
The update state

Definition at line 44 of file synapse_structure_weight_impl.h.

◆ synapse_structure_get_final_state()

static final_state_t synapse_structure_get_final_state ( update_state_t  state)
inlinestatic

Get the final state from the update state.

Parameters
[in]statethe update state
Returns
the final state

Definition at line 53 of file synapse_structure_weight_impl.h.

◆ synapse_structure_get_final_weight()

static weight_t synapse_structure_get_final_weight ( final_state_t  final_state)
inlinestatic

Get the final weight from the final state.

Parameters
[in]final_statethe final state
Returns
the final weight

Definition at line 62 of file synapse_structure_weight_impl.h.

◆ synapse_structure_get_final_synaptic_word()

static plastic_synapse_t synapse_structure_get_final_synaptic_word ( final_state_t  final_state)
inlinestatic

Get the final plastic synapse data from the final state.

Parameters
[in]final_statethe final state
Returns
the final plastic synapse data, ready to be stored

Definition at line 71 of file synapse_structure_weight_impl.h.

◆ synapse_structure_create_synapse()

static plastic_synapse_t synapse_structure_create_synapse ( weight_t  weight)
inlinestatic

Create the initial plastic synapse data.

Parameters
[in]weightthe initial synaptic weight
Returns
the plastic synapse data

Definition at line 80 of file synapse_structure_weight_impl.h.

◆ synapse_structure_get_weight()

static weight_t synapse_structure_get_weight ( plastic_synapse_t  synaptic_word)
inlinestatic

Get the current synaptic weight from the plastic synapse data.

Parameters
[in]synaptic_wordthe plastic synapse data
Returns
the current synaptic weight

Definition at line 89 of file synapse_structure_weight_impl.h.

◆ synapse_structure_decay_weight()

static void synapse_structure_decay_weight ( update_state_t state,
uint32_t  decay 
)
inlinestatic

Definition at line 94 of file synapse_structure_weight_impl.h.

◆ synapse_structure_get_update_weight()

static accum synapse_structure_get_update_weight ( update_state_t  state)
inlinestatic

Definition at line 99 of file synapse_structure_weight_impl.h.