Cypress  1.0
C++ Spiking Neural Network Simulation Framework
sli.hpp
Go to the documentation of this file.
1 /*
2  * Cypress -- C++ Spiking Neural Network Simulation Framework
3  * Copyright (C) 2016 Andreas Stöckel
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
28 #ifndef CYPRESS_BACKEND_SLI_HPP
29 #define CYPRESS_BACKEND_SLI_HPP
30 
31 #include <iosfwd>
32 
34 
35 namespace cypress {
36 namespace sli {
40 struct Params {
41  Real timestep = 0.1;
43  int threads = 1;
44 };
45 
54 void write_network(std::ostream &os, const NetworkBase &net, Real duration,
55  const Params &params = Params());
56 
65 void read_response(std::istream &is, NetworkBase &net);
66 }
67 }
68 
69 #endif /* CYPRESS_BACKEND_SLI_HPP */
Real timestep
Definition: sli.hpp:41
double Real
Definition: types.hpp:56
Definition: sli.hpp:40
void write_network(std::ostream &os, const NetworkBase &net, Real duration, const Params &params=Params())
Definition: network_base.hpp:116
int threads
Definition: sli.hpp:43
Definition: brainscales_lib.hpp:39
Real record_interval
Definition: sli.hpp:42
void read_response(std::istream &is, NetworkBase &net)