57 template<
typename dtype>
63 auto spacedValues =
linspace(
static_cast<double>(start),
static_cast<double>(stop), num, endPoint);
66 [base](
auto& value) ->
void { value = utils::powerf(base, value); });
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition StaticAsserts.hpp:56
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
void for_each(InputIt first, InputIt last, UnaryFunction f)
Definition StlAlgorithms.hpp:226
Definition Cartesian.hpp:40
NdArray< dtype > linspace(dtype inStart, dtype inStop, uint32 inNum=50, EndPoint endPoint=EndPoint::YES)
Definition linspace.hpp:61
std::uint32_t uint32
Definition Types.hpp:40
NdArray< double > logspace(dtype start, dtype stop, uint32 num=50, EndPoint endPoint=EndPoint::YES, double base=10.)
Definition logspace.hpp:59
EndPoint
End Point boolean.
Definition Enums.hpp:74
@ YES
Definition Enums.hpp:75