MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
randorth.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <random>
#include <mtl/mat/dense2D.hpp>
#include <mtl/vec/dense_vector.hpp>
#include <mtl/operation/random.hpp>
#include <mtl/operation/qr.hpp>

Namespaces

namespace  mtl
namespace  mtl::generators

Functions

template<typename T = double>
auto mtl::generators::randorth (std::size_t n, std::mt19937_64 &gen)
 Random orthogonal matrix of size n x n, from the random matrix drawn from gen (operation/random.hpp, uniform on [-1, 1)).
template<typename T = double>
auto mtl::generators::randorth (std::size_t n, std::uint64_t seed)
 Random orthogonal matrix, reproducibly from seed: the random matrix is the same with every compiler and standard library, so Q is too, up to the rounding of the QR factorization.
template<typename T = double>
auto mtl::generators::randorth (std::size_t n)
 Random orthogonal matrix, non-deterministically.