sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
matrix_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
21#include <common-typedefs.h>
22
26typedef struct matrix_generator *matrix_generator_t;
27
37matrix_generator_t matrix_generator_init(uint32_t hash, void **region,
38 void *synaptic_matrix);
39
44void matrix_generator_free(matrix_generator_t generator);
45
56bool matrix_generator_write_synapse(matrix_generator_t generator,
57 uint32_t pre_index, uint16_t post_index, accum weight, uint16_t delay,
58 unsigned long accum weight_scale);
The data for a matrix generator.
bool matrix_generator_write_synapse(matrix_generator_t generator, uint32_t pre_index, uint16_t post_index, accum weight, uint16_t delay, unsigned long accum weight_scale)
Write a synapse with a matrix generator.
matrix_generator_t matrix_generator_init(uint32_t hash, void **region, void *synaptic_matrix)
Initialise a specific matrix generator.
void matrix_generator_free(matrix_generator_t generator)
Finish with a matrix generator.
region
spike source array region IDs in human readable form