Cypress
1.0
C++ Spiking Neural Network Simulation Framework
|
#include <neurons_base.hpp>
Public Types | |
using | Type = Type |
Public Member Functions | |
ConstantSizeNeuronParametersBase ()=default | |
ConstantSizeNeuronParametersBase (const std::vector< Real > ¶meters) | |
const std::vector< Real > & | parameters () const |
void | parameters (std::vector< Real > parameters) |
void | set (size_t idx, Real value) |
Real | operator[] (size_t i) const |
const Real * | begin () const |
const Real * | end () const |
size_t | size () const |
Static Public Member Functions | |
static constexpr size_t | size () |
Protected Member Functions | |
const PopulationData & | population_data () const |
PopulationData & | population_data () |
size_t | get_parameters_size () const |
size_t | get_record_size () const |
size_t | get_data_size () const |
const auto & | read_parameters () const |
const auto & | read_record () const |
const auto & | read_data () const |
auto | write_parameters (bool partial=true) |
auto | write_record (bool partial=true) |
auto | write_data (bool partial=true) |
Static Protected Member Functions | |
template<typename Seq > | |
static Seq::value_type | from_sequence (Seq list) |
Template class for building a parameter vector which has a pre-defined size.
|
inherited |
The neuron type associated with this NeuronSignals class.
|
default |
Default constructor.
|
inline |
Constructor allowing to set the neuron parameters to the given values.
|
inlineinherited |
Returns an iterator allowing to iterate over the parameter vector.
|
inlineinherited |
Returns an iterator allowing to iterate over the parameter vector.
|
inlinestaticprotectedinherited |
Templated method which allows to construct a PopulationDataView with its own data from a list of PopulationData objects. This method is used by the various neuron parameter and signal implementations to be able to supply a list of parameters/signals to the various constructors.
|
inlineprotectedinherited |
Returns the size of the record vector. Throws an exception if the neurons in the given range do not share parameters of the same size.
|
inlineprotectedinherited |
Returns the size of the parameter vector. Throws an exception if the neurons in the given range do not share parameters of the same size.
|
inlineprotectedinherited |
Returns the size of the record vector. Throws an exception if the neurons in the given range do not share parameters of the same size.
|
inlineinherited |
Returns a read-only reference at the i-th element in the parameter vector.
|
inlineinherited |
Returns a read-only reference at the parameter vector.
|
inlineinherited |
Sets the all parameters at once. Use with caution, parameters have to be in the correct order
parameters | vector of parameters |
|
inlineprotectedinherited |
Returns a const reference at the underlying PopulationData.
|
inlineprotectedinherited |
Returns a reference at the underlying PopulationData.
|
inlineprotectedinherited |
Returns a const-reference at the vector containing the recorded data for the neurons represented by this view. Throws an exception if the neurons in this view do not share the same record flags.
|
inlineprotectedinherited |
Returns a const-reference at the parameter vector for the neurons represented by this view. Throws an exception if the neurons in this view do not share the same parameters.
|
inlineprotectedinherited |
Returns a const-reference at the vector specifying whether a signal should be recorded or not for the neurons represented by this view. Throws an exception if the neurons in this view do not share the same record flags.
|
inlineinherited |
Sets the parameter with the given index to the specified value.
idx | is the parameter that should be updated. |
value | is the value the parameter should be set to. |
|
inlineinherited |
Returns the size of the parameter vector. Aborts if the population is non-uniform.
|
inlinestatic |
Returns the constant size of the parameter vector.
|
inlineprotectedinherited |
Returns an iteratble range allowing to write the recorded data for the range of neurons represented by this vie2. Assumes that the data is being set to the same value for the specified range.
partial | if true, indicates that the record data is not entirely overridden, preventing the method from re-homogenising the data. |
|
inlineprotectedinherited |
Returns an iterable range allowing to modify the parameters for the range of neurons represented by this view. Assumes that the data is being set to the same value for the specified range.
partial | if true, indicates that the parameters are not entirely overridden, preventing the method from re-homogenising the data. |
|
inlineprotectedinherited |
Returns an iteratble range allowing to modify the record flags for the range of neurons represented by this view. Assumes that the data is being set to the same value for the specified range.
partial | if true, indicates that the record flags are not entirely overridden, preventing the method from re-homogenising the data. |