rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
random.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/ndarray/array.hpp>
6#include <rexlib/core/ndarray/const_array_ref.hpp>
7#include <rexlib/core/platform/dynamic_shared_object.h>
8
9#include <cstddef>
10#include <cstdint>
11
12namespace rexlib
13{
14
15class execution_context;
16
28REXLIB_API
30 std::uint64_t seed,
32 array *out = nullptr
33);
34
48std::uint64_t entropy_seed();
49
65 const_array_ref data,
67 array *out = nullptr
68);
69
85 std::size_t count,
87 array *out = nullptr
88);
89
90} // namespace rexlib
Container for multidimensional numeric data.
Definition array.hpp:31
Non-owning read-only reference to an array.
Definition const_array_ref.hpp:36
Pairs the hardware resources and the dispatch strategy used to run operations.
Definition execution_context.hpp:43
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
array split_key(const_array_ref key, std::size_t count, const execution_context &context, array *out=nullptr)
Derive a sequence of keys from every key.
array fold_in_key(const_array_ref key, const_array_ref data, const execution_context &context, array *out=nullptr)
Derive keys from keys and values.
array make_key(std::uint64_t seed, const execution_context &context, array *out=nullptr)
Create a key from a seed.
std::uint64_t entropy_seed()
Draw a seed from the entropy source of the system.