%PDF- %PDF-
| Direktori : /usr/lib/python3/dist-packages/pythran/pythonic/numpy/random/ |
| Current File : //usr/lib/python3/dist-packages/pythran/pythonic/numpy/random/rand.hpp |
#ifndef PYTHONIC_NUMPY_RANDOM_RAND_HPP
#define PYTHONIC_NUMPY_RANDOM_RAND_HPP
#include "pythonic/include/numpy/random/rand.hpp"
#include "pythonic/numpy/random/random.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/types/tuple.hpp"
#include "pythonic/utils/functor.hpp"
PYTHONIC_NS_BEGIN
namespace numpy
{
namespace random
{
template <class... T>
types::ndarray<double, types::array<long, sizeof...(T)>> rand(T... shape)
{
return random(types::array<long, sizeof...(T)>{{shape...}});
}
double rand()
{
return random();
}
}
}
PYTHONIC_NS_END
#endif