90 Compartment(
const long compartment_index,
const long parent_index );
91 Compartment(
const long compartment_index,
const long parent_index,
const Dictionary& compartment_params );
102 inline void gather_input(
const std::pair< double, double >& in );
103 inline std::pair< double, double >
io();
104 inline double calc_v(
const double v_in );
118inline std::pair< double, double >
126 double g_val(
hh *
hh /
gg );
127 double f_val(
ff *
hh /
gg );
129 return std::make_pair( g_val, f_val );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Compartment * get_compartment_opt(const long compartment_indx) const
Get the compartment corresponding to the provided index in the tree.
Definition cm_tree.cpp:270
void set_leafs()
Creates a vector of compartment pointers of compartments that are also leafs of the tree.
Definition cm_tree.cpp:322
Compartment * get_compartment(const long compartment_index) const
get a compartment pointer from the tree
Definition cm_tree.cpp:230
void set_parents()
functions for pointer initialization
Definition cm_tree.cpp:290
void set_syn_buffers(std::vector< RingBuffer > &syn_buffers)
associate each receptor with a spike buffer
Definition cm_tree.cpp:338
long get_size() const
get tree size (number of compartments)
Definition cm_tree.h:202
void add_compartment(const long parent_index)
add a compartment to the tree structure
Definition cm_tree.cpp:170
Compartment * get_root() const
Definition cm_tree.h:195
void pre_run_hook()
initialize the tree for simulation
Definition cm_tree.cpp:370
std::vector< double > get_voltage() const
get voltage values
Definition cm_tree.cpp:389
CompTree()
Definition cm_tree.cpp:156
void print_tree() const
print function
Definition cm_tree.cpp:483
std::vector< Compartment * > leafs_
Definition cm_tree.h:155
void solve_matrix_upsweep(Compartment *compartment, double vv)
Definition cm_tree.cpp:468
Compartment root_
structural data containers for the compartment model
Definition cm_tree.h:152
double get_compartment_voltage(const long compartment_index)
Return voltage of single compartment voltage, indicated by the compartment_index.
Definition cm_tree.cpp:403
std::vector< long > compartment_indices_
Definition cm_tree.h:153
void init_pointers()
fix all pointers in the tree, the tree structure should not be modified between calling this function...
Definition cm_tree.cpp:279
std::vector< Compartment * > compartments_
Definition cm_tree.h:154
void set_compartments()
Creates a vector of compartment pointers, organized in the order in which they were added by add_comp...
Definition cm_tree.cpp:307
void solve_matrix_downsweep(Compartment *compartment_ptr, std::vector< Compartment * >::iterator leaf_it)
recursion functions for matrix inversion
Definition cm_tree.cpp:436
void construct_matrix(const long lag)
construct the numerical integration matrix and vector
Definition cm_tree.cpp:412
std::map< std::string, double * > get_recordables()
make all state variables accessible for recording
Definition cm_tree.cpp:350
~CompTree()
Definition cm_tree.h:170
long size_
Definition cm_tree.h:157
void solve_matrix()
solve the matrix equation for next timestep voltage
Definition cm_tree.cpp:424
Definition cm_compartmentcurrents.h:404
double gl__div__2
Definition cm_tree.h:77
double el
Definition cm_tree.h:69
double yy_
Definition cm_tree.h:52
Compartment * parent
tree structure indices
Definition cm_tree.h:60
double ca
electrical parameters
Definition cm_tree.h:66
double gl__times__el
Definition cm_tree.h:79
std::vector< Compartment > children
Definition cm_tree.h:61
double gg0
auxiliary variables for efficienchy
Definition cm_tree.h:75
double gl
Definition cm_tree.h:68
double xx_
aggragators for numerical integration
Definition cm_tree.h:51
double gc
Definition cm_tree.h:67
double ff
for numerical integration
Definition cm_tree.h:81
double gc__div__2
Definition cm_tree.h:78
double hh
Definition cm_tree.h:83
CompartmentCurrents compartment_currents
vector for synapses
Definition cm_tree.h:88
~Compartment()
Definition cm_tree.h:92
double v_comp
voltage variable
Definition cm_tree.h:72
double gg
Definition cm_tree.h:82
long comp_index
compartment index
Definition cm_tree.h:56
void construct_matrix_element(const long lag)
matrix construction
Definition cm_tree.cpp:116
std::pair< double, double > io()
Definition cm_tree.h:119
RingBuffer currents
buffer for currents
Definition cm_tree.h:64
void pre_run_hook()
Definition cm_tree.cpp:88
double calc_v(const double v_in)
Definition cm_tree.h:133
double ca__div__dt
Definition cm_tree.h:76
std::map< std::string, double * > get_recordables()
Definition cm_tree.cpp:104
int n_passed
passage counter for recursion
Definition cm_tree.h:85
long p_index
parent compartment index
Definition cm_tree.h:58
void gather_input(const std::pair< double, double > &in)
maxtrix inversion
Definition cm_tree.h:112
Buffer Layout.
Definition ring_buffer.h:83
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33