CellularAutomata
Loading...
Searching...
No Matches
CellularAutomata::Kernels Namespace Reference

Commonly used kernel values. More...

Functions

template<typename T >
void ones (T *array, const unsigned int s)
 Fills the kernel with ones.
 
template<typename T >
void life (T *array, const unsigned int s)
 Fills the kernel with a pattern to run Conway's Game of Life.
 

Detailed Description

Commonly used kernel values.

Function Documentation

◆ life()

template<typename T >
void CellularAutomata::Kernels::life ( T *  array,
const unsigned int  s 
)

Fills the kernel with a pattern to run Conway's Game of Life.

Template Parameters
Ttype
Parameters
arraykernel array
skernel size

◆ ones()

template<typename T >
void CellularAutomata::Kernels::ones ( T *  array,
const unsigned int  s 
)

Fills the kernel with ones.

Template Parameters
Ttype
Parameters
arraykernel array
skernel size