<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
|
MaxtrixMarket class and random generators. More...
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 > | |
T | 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> | |
T | tlapack::rand_helper (Generator &gen, Distribution &d) |
Helper function to generate random numbers. | |
MaxtrixMarket class and random generators.
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.
[in,out] | gen | Random number generator. |
T tlapack::rand_helper | ( | Generator & | gen, |
Distribution & | d | ||
) |
Helper function to generate random numbers.
[in,out] | gen | Random number generator. |
[in,out] | d | Random distribution. |