|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Functions | |
| double | rand01 (std::mt19937_64 &gen) |
| Uniform on [0, 1): the top 53 bits of one 64-bit draw. | |
| int | mround (double v) |
| Matlab's round: half away from zero. | |
| template<typename A, typename B> | |
| void | permute (A &a, B &b, std::mt19937_64 &gen) |
| Matlab's randperm applied to a pair of vectors: Fisher-Yates on the raw stream. | |
| template<typename T> | |
| T | dot_exact (const vec::dense_vector< T > &x, const vec::dense_vector< T > &y, std::size_t m) |
| x(0..m) . y(0..m), exactly, rounded to nearest: the paper's DotExact. | |
| T mtl::generators::ill_conditioned_detail::dot_exact | ( | const vec::dense_vector< T > & | x, |
| const vec::dense_vector< T > & | y, | ||
| std::size_t | m ) |
x(0..m) . y(0..m), exactly, rounded to nearest: the paper's DotExact.
|
inline |
Matlab's round: half away from zero.
| void mtl::generators::ill_conditioned_detail::permute | ( | A & | a, |
| B & | b, | ||
| std::mt19937_64 & | gen ) |
Matlab's randperm applied to a pair of vectors: Fisher-Yates on the raw stream.
|
inline |
Uniform on [0, 1): the top 53 bits of one 64-bit draw.