52 template<
typename dtype>
60 std::for_each(inArray.
cbegin(),
62 [&returnArray, &counter](dtype value) noexcept ->
void
63 { returnArray[counter++] = 1. / static_cast<double>(value); });
80 template<
typename dtype>
88 std::for_each(inArray.cbegin(),
90 [&returnArray, &counter](std::complex<dtype> value) ->
void
91 { returnArray[counter++] = std::complex<double>(1.) / complex_cast<double>(value); });
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition StaticAsserts.hpp:39
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
const_iterator cbegin() const noexcept
Definition NdArrayCore.hpp:1365
const Shape & shape() const noexcept
Definition NdArrayCore.hpp:4591
const_iterator cend() const noexcept
Definition NdArrayCore.hpp:1673
Definition Cartesian.hpp:40
NdArray< double > reciprocal(const NdArray< dtype > &inArray)
Definition reciprocal.hpp:53
std::uint32_t uint32
Definition Types.hpp:40