<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
MatrixMarket.hpp File Reference

MaxtrixMarket class and random generators. More...

#include <random>
#include <tlapack/base/utils.hpp>
#include <type_traits>
Include dependency graph for MatrixMarket.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tlapack::MatrixMarket
 MatrixMarket class. More...
 
class  tlapack::PCG32
 Permuted Congruential Generator. More...
 

Functions

template<class T , class Generator >
tlapack::rand_helper (Generator &gen)
 Helper function to generate random numbers using an uniform distribution in [0,1).
 
template<class T , class Generator , class Distribution , enable_if_t< is_real< T >, bool > = true>
tlapack::rand_helper (Generator &gen, Distribution &d)
 Helper function to generate random numbers.
 

Detailed Description

MaxtrixMarket class and random generators.

Author
Thijs Steel, KU Leuven, Belgium
Weslley S Pereira, University of Colorado Denver, USA

Function Documentation

◆ rand_helper() [1/2]

template<class T , class Generator >
T tlapack::rand_helper ( Generator gen)

Helper function to generate random numbers using an uniform distribution in [0,1).

The type of the uniform distribution is T if real_type<T> is either float, double or long double. Otherwise, the uniform distribution will be defined using the type float.

Parameters
[in,out]genRandom number generator.

◆ rand_helper() [2/2]

template<class T , class Generator , class Distribution , enable_if_t< is_real< T >, bool > = true>
T tlapack::rand_helper ( Generator gen,
Distribution d 
)

Helper function to generate random numbers.

Parameters
[in,out]genRandom number generator.
[in,out]dRandom distribution.