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

Namespaces

namespace  detail
 

Typedefs

using u128 = __uint128_t
 

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.

Function Documentation

◆ lehmer64_constant()

constexpr 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 ( u64 seed)
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 ( isize nrows) -> Vec<Scalar>

Definition at line 152 of file random_qp_problems.hpp.

◆ matrix_rand()

template<typename Scalar >
auto proxsuite::proxqp::utils::rand::matrix_rand ( isize nrows,
isize ncols ) -> 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 ( isize n) -> 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 ( isize n,
Scalar cond ) -> 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 ( isize n,
Scalar cond,
Scalar p ) -> 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 ( isize n,
Scalar rho,
Scalar p ) -> SparseMat<Scalar>

Definition at line 280 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 ( isize n,
Scalar rho,
Scalar p ) -> Mat<Scalar, colmajor>

Definition at line 311 of file random_qp_problems.hpp.

◆ sparse_matrix_rand()

template<typename Scalar >
auto proxsuite::proxqp::utils::rand::sparse_matrix_rand ( isize nrows,
isize ncols,
Scalar p ) -> SparseMat<Scalar>

Definition at line 341 of file random_qp_problems.hpp.

◆ sparse_matrix_rand_not_compressed()

template<typename Scalar >
auto proxsuite::proxqp::utils::rand::sparse_matrix_rand_not_compressed ( isize nrows,
isize ncols,
Scalar p ) -> Mat<Scalar, colmajor>

Definition at line 358 of file random_qp_problems.hpp.