|
CellularAutomata
|
Main namespace. More...
Namespaces | |
| namespace | Activations |
| Commonly used activation functions. | |
| namespace | exception |
| Contains all custom exceptions. | |
| namespace | Kernels |
| Commonly used kernel values. | |
| namespace | random |
| Global random number generator wrapping the std::random utilities. | |
| namespace | States |
| Commonly used state initializations. | |
Classes | |
| class | Kernel |
| 2D convolution kernel More... | |
| class | State |
| 2D buffered matrices More... | |
Enumerations | |
| enum | Device { CPU , CUDA } |
| Computational device. More... | |
Functions | |
| template<typename T , typename Activation > | |
| void | Epoch (State< T > *state, Kernel< T > *kernel, Activation activation, bool recursive) |
| Runs a single epoch on a given state using a kernel. | |
Main namespace.
| void CellularAutomata::Epoch | ( | State< T > * | state, |
| Kernel< T > * | kernel, | ||
| Activation | activation, | ||
| bool | recursive | ||
| ) |
Runs a single epoch on a given state using a kernel.
| T | type |
| Activation | functor |
| state | state of type T |
| kernel | kernel of type T |
| activation | functor of type T |
| recursive | if world should be looping (flat grid behaves like torus surface) |
| DevicesUnequal |