#include <cstddef>#include <cstdint>#include <memory_resource>#include <nk/value/value.hpp>Go to the source code of this file.
Functions | |
| Value | nk::comm::randsrc (::nk::ops::RngContext &rng, size_t m, size_t n, const Value &alphabet, bool have_state, uint32_t state, std::pmr::memory_resource *mr=nullptr) |
| Generate an m×n random matrix from a finite alphabet (out = randsrc(m, n, alphabet, state)). | |
| Value | nk::comm::randerr (::nk::ops::RngContext &rng, size_t m, size_t n, const Value &errspec, bool have_state, uint32_t state, std::pmr::memory_resource *mr=nullptr) |
| Generate an m×n binary error pattern (out = randerr(m, n, errors, state)). | |