this file creates a new CA object and tests the basic functionality to prove correctness
More...
#include "CAdatatypes.h"
#include <iostream>
#include <array>
this file creates a new CA object and tests the basic functionality to prove correctness
- Author
- Trevor Oldham (trevo.nosp@m.ldha.nosp@m.m@ber.nosp@m.kele.nosp@m.y.edu)
Contributor(s)
Emmanuel Cortes
- Date
- 2022-12-03
◆ custom_rule()
void custom_rule |
( |
int * |
cell_index, |
|
|
const int |
index_size, |
|
|
int * |
neighborhood_cells, |
|
|
const int |
neighborhood_size, |
|
|
int & |
new_cell_state |
|
) |
| |
Test custom rule function for setting a new cell state for the cell at cell_index.
- Parameters
-
cell_index | array of cell indices that we are going to update it state for |
index_size | number of indices need to address the cell |
neighborhood_cells | array of neighboring cells |
neighborhood_size | size of neighborhood_cells array |
new_cell_state | reference to the new cell state |
◆ test_CA()
Main testing function that calls all other types of tests.
- Parameters
-
◆ test_CA_init()
◆ test_CA_matrix()
Tests the implementation of the CA with a matrix of cells.
◆ test_CA_step()
◆ test_CA_tensor()
Tests the implementation of the CA with a tensor of cells.
◆ test_CA_vector()
Tests the implementation of the CA with vector of cells.