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