Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ca_wolfram1d_example.cc File Reference

Print one row of every elementary 1D Wolfram rule (0..255) starting from a single-1 impulse at the centre of a length-N lattice and advancing for T steps under an open boundary. More...

#include <array>
#include <cerrno>
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <limits>
#include <span>
#include <string>
#include <ca-traits.H>
#include <tpl_ca_storage.H>
#include <tpl_ca_lattice.H>
#include <tpl_ca_neighborhood.H>
#include <tpl_ca_rule.H>
Include dependency graph for ca_wolfram1d_example.cc:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Print one row of every elementary 1D Wolfram rule (0..255) starting from a single-1 impulse at the centre of a length-N lattice and advancing for T steps under an open boundary.

Usage: ca_wolfram1d_example [rule] [width] [steps]

With no arguments it prints all 256 rules at width 61 over 30 steps, using ASCII (# for 1, for 0). Pass a single rule number to focus the output.

Definition in file ca_wolfram1d_example.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)