nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
random_source.hpp File Reference
#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)).