include/parallel_automaton.hpp
/**
     * @brief Construct a new Cellular Automaton object.
     *
     * @param grid Grid of the simulation.
     * @param rows Number of rows of the grid.
     * @param columns Number of columns of the grid.
     * @param update_function Function used to update the state of the grid.
     * @param nw Number of workers (0 == hadrwareconcurrency) (default 0).
     *
     */
@brief Construct a new Cellular Automaton object.
@param grid Grid of the simulation.
@param rows Number of rows of the grid.
@param columns Number of columns of the grid.
@param update_function Function used to update the state of the grid.
@param nw Number of workers (0 == hadrwareconcurrency) (default 0).
@brief Construct a new Cellular Automaton object . @param grid Grid of the simulation . @param rows Number of rows of the grid . @param columns Number of columns of the grid . @param update_function Function used to update the state of the grid . @param nw Number of workers ( 0 == hadrwareconcurrency ) ( default 0 ) .
CellularAutomaton(ca::Grid<T> &grid, std::function<T(T, T, T, T, T, T, T, T, T)> update_function,
                      unsigned workers = 0)
        : grid{grid}, generation(0), update_function(update_function), pool(workers)
    {
        this->nw = pool.get_number_workers();
    }
CellularAutomaton ( ca :: Grid < T > & grid , std :: function < T ( T , T , T , T , T , T , T , T , T ) > update_function , unsigned workers = 0 ) : grid { grid } , generation ( 0 ) , update_function ( update_function ) , pool ( workers ) { this -> nw = pool . get_number_workers ( ) ; }
@brief Construct a new Cellular Automaton object.
@brief Construct a new Cellular Automaton object .