proxsuite 0.7.2
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
proxsuite::proxqp::utils::rand Namespace Reference

Namespaces

namespace  detail

Typedefs

using u128 = __uint128_t
using u32
using u64

Functions

constexpr u128 lehmer64_constant (0xda942042e4dd58b5)
auto lehmer_global () -> u128 &
auto lehmer64 () -> u64
void set_seed (u64 seed)
auto uniform_rand () -> double
auto normal_rand () -> double
template<typename Scalar>
auto vector_rand (isize nrows) -> Vec< Scalar >
template<typename Scalar>
auto matrix_rand (isize nrows, isize ncols) -> Mat< Scalar, colmajor >
template<typename Scalar>
auto orthonormal_rand (isize n) -> Mat< Scalar, colmajor > const &
template<typename Scalar>
auto positive_definite_rand (isize n, Scalar cond) -> Mat< Scalar, colmajor >
template<typename Scalar>
auto sparse_positive_definite_rand (isize n, Scalar cond, Scalar p) -> SparseMat< Scalar >
template<typename Scalar>
auto sparse_positive_definite_rand_compressed (isize n, Scalar rho, Scalar p) -> SparseMat< Scalar >
template<typename Scalar>
auto sparse_positive_definite_rand_not_compressed (isize n, Scalar rho, Scalar p) -> Mat< Scalar, colmajor >
template<typename Scalar>
auto sparse_matrix_rand (isize nrows, isize ncols, Scalar p) -> SparseMat< Scalar >
template<typename Scalar>
auto sparse_matrix_rand_not_compressed (isize nrows, isize ncols, Scalar p) -> Mat< Scalar, colmajor >

Typedef Documentation

◆ u128

Definition at line 104 of file random_qp_problems.hpp.

◆ u32

Definition at line 48 of file typedefs.hpp.

◆ u64

Definition at line 46 of file typedefs.hpp.

Function Documentation

◆ lehmer64_constant()

u128 proxsuite::proxqp::utils::rand::lehmer64_constant(0xda942042e4dd58b5)
constexpr

◆ lehmer_global()

auto proxsuite::proxqp::utils::rand::lehmer_global()-> u128&
inline

Definition at line 108 of file random_qp_problems.hpp.

◆ lehmer64()

auto proxsuite::proxqp::utils::rand::lehmer64()-> u64
inline

Definition at line 115 of file random_qp_problems.hpp.

◆ set_seed()

void proxsuite::proxqp::utils::rand::set_seed(u64seed)
inline

Definition at line 122 of file random_qp_problems.hpp.

◆ uniform_rand()

auto proxsuite::proxqp::utils::rand::uniform_rand()-> double
inline

Definition at line 130 of file random_qp_problems.hpp.

◆ normal_rand()

auto proxsuite::proxqp::utils::rand::normal_rand()-> double
inline

Definition at line 136 of file random_qp_problems.hpp.

◆ vector_rand()

template<typename Scalar>
auto proxsuite::proxqp::utils::rand::vector_rand(isizenrows)-> Vec<Scalar>

Definition at line 152 of file random_qp_problems.hpp.

◆ matrix_rand()

template<typename Scalar>
auto proxsuite::proxqp::utils::rand::matrix_rand(isizenrows,
isizencols ) -> Mat<Scalar, colmajor>

Definition at line 164 of file random_qp_problems.hpp.

◆ orthonormal_rand()

template<typename Scalar>
auto proxsuite::proxqp::utils::rand::orthonormal_rand(isizen)-> Mat<Scalar, colmajor> const&

Definition at line 192 of file random_qp_problems.hpp.

◆ positive_definite_rand()

template<typename Scalar>
auto proxsuite::proxqp::utils::rand::positive_definite_rand(isizen,
Scalarcond ) -> Mat<Scalar, colmajor>

Definition at line 210 of file random_qp_problems.hpp.

◆ sparse_positive_definite_rand()

template<typename Scalar>
auto proxsuite::proxqp::utils::rand::sparse_positive_definite_rand(isizen,
Scalarcond,
Scalarp ) -> SparseMat<Scalar>

Definition at line 229 of file random_qp_problems.hpp.

◆ sparse_positive_definite_rand_compressed()

template<typename Scalar>
auto proxsuite::proxqp::utils::rand::sparse_positive_definite_rand_compressed(isizen,
Scalarrho,
Scalarp ) -> SparseMat<Scalar>

Definition at line 279 of file random_qp_problems.hpp.

◆ sparse_positive_definite_rand_not_compressed()

template<typename Scalar>
auto proxsuite::proxqp::utils::rand::sparse_positive_definite_rand_not_compressed(isizen,
Scalarrho,
Scalarp ) -> Mat<Scalar, colmajor>

Definition at line 309 of file random_qp_problems.hpp.

◆ sparse_matrix_rand()

template<typename Scalar>
auto proxsuite::proxqp::utils::rand::sparse_matrix_rand(isizenrows,
isizencols,
Scalarp ) -> SparseMat<Scalar>

Definition at line 338 of file random_qp_problems.hpp.

◆ sparse_matrix_rand_not_compressed()

template<typename Scalar>
auto proxsuite::proxqp::utils::rand::sparse_matrix_rand_not_compressed(isizenrows,
isizencols,
Scalarp ) -> Mat<Scalar, colmajor>

Definition at line 355 of file random_qp_problems.hpp.