51 template<
typename dtype>
59 std::for_each(inArray.
cbegin(),
61 [&returnArray, &counter](dtype value) noexcept ->
void
62 { returnArray[counter++] = 1. / static_cast<double>(value); });
79 template<
typename dtype>
87 std::for_each(inArray.cbegin(),
89 [&returnArray, &counter](std::complex<dtype> value) ->
void
90 { 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:135
const_iterator cbegin() const noexcept
Definition NdArrayCore.hpp:1361
const Shape & shape() const noexcept
Definition NdArrayCore.hpp:4587
const_iterator cend() const noexcept
Definition NdArrayCore.hpp:1669
Definition Cartesian.hpp:39
NdArray< double > reciprocal(const NdArray< dtype > &inArray)
Definition reciprocal.hpp:52
std::uint32_t uint32
Definition Types.hpp:40