55 const auto mDouble =
static_cast<double>(m);
56 const auto mMinus1Over2 = (mDouble - 1.) / 2.;
57 const auto mMinus1Over2Inv = 1. / mMinus1Over2;
63 result[i++] = mMinus1Over2Inv * (mMinus1Over2 -
std::abs(n - mMinus1Over2));
Definition: Cartesian.hpp:40
NdArray< double > bartlett(int32 m)
Definition: bartlett.hpp:48
auto abs(dtype inValue) noexcept
Definition: abs.hpp:49
NdArray< dtype > linspace(dtype inStart, dtype inStop, uint32 inNum=50, EndPoint endPoint=EndPoint::YES)
Definition: linspace.hpp:61
std::int32_t int32
Definition: Types.hpp:36