| SNABSuite
    0.x
    Spiking Neural Architecture Benchmark Suite | 
| Functions | |
| cypress::Real | NaN () | 
| Used to indicate bad or invalid results.  More... | |
| std::vector< std::shared_ptr< SNABBase > > | snab_registry (std::string backend, size_t bench_index) | 
| template<typename T > | |
| std::map< std::string, T > | json_to_map (const cypress::Json &obj) | 
| template<typename T > | |
| std::vector< T > | read_check (std::map< std::string, T > &input, const std::vector< std::string > &names, const std::vector< T > &defaults) | 
| cypress::Json | read_config (const std::string &name, const std::string &backend) | 
| bool | check_json_for_parameters (const std::vector< std::string > ¶meters, const cypress::Json &json, const std::string name) | 
| cypress::Json | extract_backend (const cypress::Json &config, const std::string &backend) | 
| template<typename T > | |
| std::vector< T > | json_array_to_vector (const cypress::Json &json) | 
| template<typename T , int n> | |
| std::array< T, n > | json_array_to_array (const cypress::Json &json) | 
| template<typename T > | |
| std::vector< std::vector< T > > | json_2Darray_to_vector (const cypress::Json &json) | 
| template<typename T , int n> | |
| std::vector< std::vector< std::array< T, n > > > | json_3Darray_to_vector (const cypress::Json &json) | 
| bool | replace_arrays_by_value (cypress::Json &json, const size_t &index=0, std::string name="", bool warn=true) | 
| bool SNAB::check_json_for_parameters | ( | const std::vector< std::string > & | parameters, | 
| const cypress::Json & | json, | ||
| const std::string | name | ||
| ) | 
| cypress::Json SNAB::extract_backend | ( | const cypress::Json & | config, | 
| const std::string & | backend | ||
| ) | 
Extract backend specific part from a configuration file. Checks for dot seperated backends
| std::vector<std::vector<T> > SNAB::json_2Darray_to_vector | ( | const cypress::Json & | json | ) | 
Function to convert a two dimensional array to a vector.
| json | 2D array to be converted. This should not be an object! | 
Definition at line 150 of file read_json.hpp.
| std::vector<std::vector<std::array<T, n> > > SNAB::json_3Darray_to_vector | ( | const cypress::Json & | json | ) | 
Function to convert a three dimensional array to a vector.
| json | 3D array to be converted. This should not be an object! | 
Definition at line 168 of file read_json.hpp.
| std::array<T, n> SNAB::json_array_to_array | ( | const cypress::Json & | json | ) | 
Function to convert a JSON array to a array. This is used for one dimensional arrays only!
| json | array to be converted. This should not be an object! | 
Definition at line 125 of file read_json.hpp.
| std::vector<T> SNAB::json_array_to_vector | ( | const cypress::Json & | json | ) | 
Function to convert a JSON array to a vector. This is used for one dimensional arrays only!
| json | array to be converted. This shouold not be an object! | 
Definition at line 101 of file read_json.hpp.
| std::map<std::string, T> SNAB::json_to_map | ( | const cypress::Json & | obj | ) | 
| cypress::Real SNAB::NaN | ( | ) | 
Used to indicate bad or invalid results.
| std::vector<T> SNAB::read_check | ( | std::map< std::string, T > & | input, | 
| const std::vector< std::string > & | names, | ||
| const std::vector< T > & | defaults | ||
| ) | 
Checks if all values given are needed, terminate if not. If a needed value is not given, take default value and warn user
Definition at line 56 of file read_json.hpp.
| cypress::Json SNAB::read_config | ( | const std::string & | name, | 
| const std::string & | backend | ||
| ) | 
| bool SNAB::replace_arrays_by_value | ( | cypress::Json & | json, | 
| const size_t & | index = 0, | ||
| std::string | name = "", | ||
| bool | warn = true | ||
| ) | 
Replaces all arrays in a json object with one entry of the same array
| json | object to be manipulated | 
| index | index of value used | 
| warn | When set to true, warning is given when nothing has been replaced | 
| std::vector<std::shared_ptr<SNABBase> > SNAB::snab_registry | ( | std::string | backend, | 
| size_t | bench_index | ||
| ) | 
A vector containing all SNABs/benchmarks which should be executed. The shared pointer ensures that objects live 'long enough'
 1.8.11
 1.8.11