pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
random.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_BASIC_FUNCTIONS_RANDOM_H
4#define pRC_CORE_BASIC_FUNCTIONS_RANDOM_H
5
7
8namespace pRC
9{
10 template<class T, class D,
12 static inline constexpr auto random(RandomEngine &rng, D &distribution)
13 {
14 return Random<T, D>(rng, distribution)();
15 }
16}
17#endif // pRC_CORE_BASIC_FUNCTIONS_RANDOM_H
Definition threefry.hpp:24
Definition cholesky.hpp:18
static constexpr auto random(RandomEngine &rng, D &distribution)
Definition random.hpp:12
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13
Threefry< 20 > RandomEngine
Definition type_traits.hpp:13