Brainsimulation
Simulation of the human brain.
kernels.h
Go to the documentation of this file.
1 // Created by Johannes on 11.05.2018.
2 
10 #ifndef BRAINSIMULATION_KERNELS_H
11 #define BRAINSIMULATION_KERNELS_H
12 
13 #include "definitions.h"
14 
22 
30 
43 int d_kernel_4neighbors(nodeval_t *result, int number_nodes_x, int number_nodes_y, nodeval_t **nodegrid, int x, int y);
44 
57 int id_kernel_4neighbors(nodeval_t *result, int number_nodes_x, int number_nodes_y, nodeval_t **nodegrid, int x, int y);
58 
59 #endif //BRAINSIMULATION_KERNELS_H
int id_kernel_4neighbors(nodeval_t *result, int number_nodes_x, int number_nodes_y, nodeval_t **nodegrid, int x, int y)
Calculates the indirect kernel for one specific node of the node grid, i.e., the indirect neighborhoo...
Definition: kernels.c:54
double nodeval_t
Type that the nodes in the brainsimulation use to store their energy level.
Definition: definitions.h:120
Common definitions (mostly types).
kernelfunc_t d_kernel_function_factory(char *name)
Returns a function pointer to function of the direct neighborhood kernel.
Definition: kernels.c:10
int(* kernelfunc_t)(nodeval_t *, int, int, nodeval_t **, int, int)
Definition of the kernel-function interface.
Definition: definitions.h:190
int d_kernel_4neighbors(nodeval_t *result, int number_nodes_x, int number_nodes_y, nodeval_t **nodegrid, int x, int y)
Calculates the direct kernel for one specific node of the node grid, i.e., the direct neighborhood...
Definition: kernels.c:24
kernelfunc_t id_kernel_function_factory(char *name)
Returns a function pointer to function of the indirect neighborhood kernel.
Definition: kernels.c:17