CellularAutomata
Loading...
Searching...
No Matches
kernels.hpp
1#pragma once
2
3#include "../core/common.hpp"
4
5namespace CellularAutomata
6{
10 namespace Kernels
11 {
19 template <typename T>
20 void ones(T* array, const unsigned int s);
21
22
30 template <typename T>
31 void life(T* array, const unsigned int s);
32
33 // template <typename T>
34 // void normal(T* array, const int s);
35 }
36}
37
38#include "kernels.inl"
void ones(T *array, const unsigned int s)
Fills the kernel with ones.
Definition kernels.inl:10
void life(T *array, const unsigned int s)
Fills the kernel with a pattern to run Conway's Game of Life.
Definition kernels.inl:19
Main namespace.
Definition common.hpp:33