EcGen 1.1.8
Loading...
Searching...
No Matches
gray_code.hpp File Reference

Binary Reflected Gray Code generation. More...

#include <py2cpp/gen.hpp>
#include <py2cpp/recursive_gen.hpp>
Include dependency graph for gray_code.hpp:

Go to the source code of this file.

Namespaces

namespace  ecgen

Functions

auto ecgen::brgc_gen (int n) -> py::RecursiveGenerator< int >
 Generate recursive Binary Reflected Gray Code sequence.
template<typename Container>
auto ecgen::brgc (int n) -> py::Generator< Container & >
 Generate Binary Reflected Gray Code (BRGC) sequence using recursion.

Detailed Description

Binary Reflected Gray Code generation.