sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
connection_generator.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017 The University of Manchester
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
23#include <stdint.h>
24#include <common-typedefs.h>
25
26#include "param_generator.h"
27#include "matrix_generator.h"
28
32typedef struct connection_generator *connection_generator_t;
33
42connection_generator_t connection_generator_init(
43 uint32_t hash, void **region);
44
49void connection_generator_free(connection_generator_t generator);
50
71 connection_generator_t generator, uint32_t pre_lo, uint32_t pre_hi,
72 uint32_t post_lo, uint32_t post_hi, uint32_t post_index,
73 uint32_t post_slice_start, uint32_t post_slice_count,
74 unsigned long accum weight_scale, accum timestep_per_delay,
75 param_generator_t weight_generator, param_generator_t delay_generator,
76 matrix_generator_t matrix_generator);
The data for a connection generator.
connection_generator_t connection_generator_init(uint32_t hash, void **region)
Initialise a specific connection generator.
bool connection_generator_generate(connection_generator_t generator, uint32_t pre_lo, uint32_t pre_hi, uint32_t post_lo, uint32_t post_hi, uint32_t post_index, uint32_t post_slice_start, uint32_t post_slice_count, unsigned long accum weight_scale, accum timestep_per_delay, param_generator_t weight_generator, param_generator_t delay_generator, matrix_generator_t matrix_generator)
Generate connections with a connection generator.
void connection_generator_free(connection_generator_t generator)
Finish with a connection generator.
The data for a matrix generator.
Interface for matrix generation.
Interface for parameter generator.
region
spike source array region IDs in human readable form