random.hpp File Reference

#include <cstdlib>
#include "big_int.hpp"
#include "rational.hpp"
#include "vector.hpp"
#include "matrix.hpp"
#include "sparse_polynom.hpp"

Go to the source code of this file.

Namespaces

namespace  Arageli
namespace  Arageli::_Internal

Classes

struct  Arageli::rand_config
struct  Arageli::_Internal::IF< cond, _then, _else >
struct  Arageli::_Internal::IF< false, _then, _else >
struct  Arageli::_Internal::IS_TYPE_BASE< T >
struct  Arageli::_Internal::IS_TYPE_BASE< signed char >
struct  Arageli::_Internal::IS_TYPE_BASE< unsigned char >
struct  Arageli::_Internal::IS_TYPE_BASE< signed short >
struct  Arageli::_Internal::IS_TYPE_BASE< unsigned short >
struct  Arageli::_Internal::IS_TYPE_BASE< signed int >
struct  Arageli::_Internal::IS_TYPE_BASE< unsigned int >
struct  Arageli::_Internal::IS_TYPE_BASE< signed long >
struct  Arageli::_Internal::IS_TYPE_BASE< unsigned long >
struct  Arageli::_Internal::IS_TYPE_BASE< float >
struct  Arageli::_Internal::IS_TYPE_BASE< double >
struct  Arageli::_Internal::IS_TYPE_BASE< long double >
struct  Arageli::_Internal::IS_TYPE_BASE< big_int >
struct  Arageli::_Internal::rand_nolimited< T, Conf >
struct  Arageli::_Internal::rand_limited< T, min, max >
struct  Arageli::_Internal::rand_nolimited< signed int, Conf >
struct  Arageli::_Internal::rand_limited< signed int, min, max >
struct  Arageli::_Internal::rand_nolimited< unsigned int, Conf >
struct  Arageli::_Internal::rand_limited< unsigned int, min, max >
struct  Arageli::_Internal::rand_nolimited< signed char, Conf >
struct  Arageli::_Internal::rand_limited< signed char, min, max >
struct  Arageli::_Internal::rand_nolimited< unsigned char, Conf >
struct  Arageli::_Internal::rand_limited< unsigned char, min, max >
struct  Arageli::_Internal::rand_nolimited< signed short, Conf >
struct  Arageli::_Internal::rand_limited< signed short, min, max >
struct  Arageli::_Internal::rand_nolimited< unsigned short, Conf >
struct  Arageli::_Internal::rand_limited< unsigned short, min, max >
struct  Arageli::_Internal::rand_nolimited< signed long, Conf >
struct  Arageli::_Internal::rand_limited< signed long, min, max >
struct  Arageli::_Internal::rand_nolimited< unsigned long, Conf >
struct  Arageli::_Internal::rand_limited< unsigned long, min, max >
struct  Arageli::_Internal::rand_nolimited< float, Conf >
struct  Arageli::_Internal::rand_limited< float, min, max >
struct  Arageli::_Internal::rand_nolimited< double, Conf >
struct  Arageli::_Internal::rand_limited< double, min, max >
struct  Arageli::_Internal::rand_nolimited< long double, Conf >
struct  Arageli::_Internal::rand_limited< long double, min, max >
struct  Arageli::_Internal::rand_nolimited< big_int, Conf >
struct  Arageli::_Internal::rand_limited< big_int, min, max >
struct  Arageli::_Internal::rand_nolimited< rational< T >, Conf >
struct  Arageli::_Internal::rand_nolimited< monom< F, I >, Conf >
struct  Arageli::_Internal::rand_nolimited< sparse_polynom< F, I, REFCNT >, Conf >
struct  Arageli::_Internal::rand_nolimited< matrix< T, REFCNT >, Conf >
struct  Arageli::_Internal::rand_nolimited< vector< T, REFCNT >, Conf >
struct  Arageli::rnd< T, Conf >

Defines

#define RAND   (std::rand())
#define SPECIALIZE_RAND(type, gen_alg, lim_gen_alg)


Define Documentation

#define RAND   (std::rand())

Definition at line 78 of file random.hpp.

#define SPECIALIZE_RAND ( type,
gen_alg,
lim_gen_alg   ) 

Value:

template<class Conf> \
    struct rand_nolimited<type,Conf>{\
        static type rand(void) {return (type)(gen_alg);}\
    };\
    template<int min, int max>\
    struct rand_limited<type,min,max>{\
        static type rand(void) {return (type)(lim_gen_alg);}\
    }

Definition at line 79 of file random.hpp.


Generated on Thu Aug 31 17:38:18 2006 for Arageli by  doxygen 1.4.7