54 template<
typename dtype,
typename GeneratorType = std::mt19937>
55 dtype
randN(GeneratorType& generator)
59 std::normal_distribution<dtype> dist;
60 return dist(generator);
75 template<
typename dtype,
typename GeneratorType = std::mt19937>
82 std::normal_distribution<dtype> dist;
86 [&generator, &dist](dtype& value) ->
void { value = dist(generator); });
101 template<
typename dtype>
118 template<
typename dtype>
121 return detail::randN<dtype>(
generator_, inShape);
#define STATIC_ASSERT_FLOAT(dtype)
Definition: StaticAsserts.hpp:45
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
iterator end() noexcept
Definition: NdArrayCore.hpp:1479
iterator begin() noexcept
Definition: NdArrayCore.hpp:1171
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
dtype randN(GeneratorType &generator)
Definition: randN.hpp:55
static std::mt19937_64 generator_
generator function
Definition: generator.hpp:37
dtype randN()
Definition: randN.hpp:102
void for_each(InputIt first, InputIt last, UnaryFunction f)
Definition: StlAlgorithms.hpp:227
Definition: Coordinate.hpp:45