blob: a3ab8f83f1b9cb3b74cec59eb8586658c270f365 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef PYTHONIC_INCLUDE_NUMPY_RANDOM_GEOMETRIC_HPP
#define PYTHONIC_INCLUDE_NUMPY_RANDOM_GEOMETRIC_HPP
#include "pythonic/include/types/NoneType.hpp"
#include "pythonic/include/types/ndarray.hpp"
#include "pythonic/include/types/tuple.hpp"
#include "pythonic/include/utils/functor.hpp"
PYTHONIC_NS_BEGIN
namespace numpy
{
namespace random
{
template <class pS>
types::ndarray<double, pS> geometric(double p, pS const &shape);
auto geometric(double p, long size)
-> decltype(geometric(p, types::array<long, 1>{{size}}));
double geometric(double, types::none_type size = {});
DEFINE_FUNCTOR(pythonic::numpy::random, geometric);
}
}
PYTHONIC_NS_END
#endif
|