 |
NumCpp
1.0
A C++ implementation of the Python Numpy library
|
Go to the documentation of this file.
40 #include "boost/random/uniform_real_distribution.hpp"
61 template<
typename dtype>
70 else if (inLow > inHigh)
93 template<
typename dtype>
102 else if (inLow > inHigh)
112 [&dist](dtype& value) ->
void
114 value = dist(generator_);
dtype randFloat(dtype inLow, dtype inHigh=0.0)
Definition: randFloat.hpp:62
bool essentiallyEqual(dtype inValue1, dtype inValue2) noexcept
Definition: essentiallyEqual.hpp:53
void for_each(InputIt first, InputIt last, UnaryFunction f) noexcept
Definition: StlAlgorithms.hpp:214
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
#define STATIC_ASSERT_FLOAT(dtype)
Definition: StaticAsserts.hpp:44
iterator end() noexcept
Definition: NdArrayCore.hpp:1435
Definition: Coordinate.hpp:45
void swap(NdArray< dtype > &inArray1, NdArray< dtype > &inArray2) noexcept
Definition: swap.hpp:43
Holds info about the dtype.
Definition: DtypeInfo.hpp:41
static std::mt19937_64 generator_
generator function
Definition: generator.hpp:40
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:37
iterator begin() noexcept
Definition: NdArrayCore.hpp:1091