A Dialogue Over Callous VE-822-Concepts

De Les Feux de l'Amour - Le site Wik'Y&R du projet Y&R.

Kcutoff Equals 3 is a preprocessor establish fixed at compile time. ?1 // bequest coming from fuzy foundation school ?2 // 1. vector_like: to offer push_back while common interface ?3 // 2. ConnectorBase: to own typical bottom school type for all those canisters ?4 ?5 // recursion action ?6 templateFMO4 �K�, typename connectionT> ?7 struct HomConnector ?8???: open public vector_like  ?9 10?????connectionT C_[K]; 11 12?????HomConnector(const HomConnector & Cm1, 13????????????????? const connectionT & c) 14?????: syn_id_(Cm1.syn_id_) 15????? 16????????for (int i=0; i & push_back(const connectionT & c) 23????? 24????????//pass on contents and VE-822 25???????// recursively instantiate container for K+1 elements 26???????// use pool allocator, pass (*this, c) as args to constructor 27???????HomConnector *newconn = 28???????????allocate >(*this, c); 29 30????? // delete this instance 31?????delete this; 32 33??? // return container of next size 34??? return *newconn; 35???? 36 ; 37 38 // recursion termination by template specialization 39 template 40 struct HomConnector 41???: public vector_like 42 43?????std::vector C_; 44?????�� 45?????HomConnector & push_back(const connectionT & c) 46????? 47????????C_.push_back(c); 48????????return *this; 49??? 50 ; View it in a separate window Algorithm 2 Algorithm to create new connections using adaptive data containers. The algorithm is implemented in the method add_connection() of ConnectorModel (see also Figure ?Figure4).4). The template function allocate invokes the custom pool allocator, providing for each thread memory from a separate pool. The different branches of the algorithm marked by Case 0-3 refer to the description in the main text. ?1 ConnectorBase* add_connection(Node& tgt, Node& src, ?2???????????????????????????????ConnectorBase* conn, ConnectionT& c): ?3 ?4??// source neuron does not yet have any local targets (Case 0) ?5??if conn == 0: ?6????c.check_connection(t_lastspike) Sotrastaurin order ?7????conn �� allocate >(c) ?8 ?9??// source neuron has at least one local target 10 ?else: 11????c.check_connection(t_lastspike(*conn).get_t_lastspike()) 12 13????// all existing local synapses are of the same type (Case 1,2) 14????if (*conn).homogeneous_model(): 15 16?????// new synapse is of same type as existing ones (stay in Case 1,2) 17?????if (*conn).get_syn_id() == c.get_syn_id(): 18???????hom_vec �� static_cast * >(conn) 19???????conn �� &(*hom_vec).