 |
NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Go to the documentation of this file.
54 template<
typename dtype>
63 [&returnArray, &counter](dtype value) noexcept ->
void
65 returnArray[counter++] = 1.0 / static_cast<double>(value);
85 template<
typename dtype>
94 [&returnArray, &counter](std::complex<dtype> value) ->
void
96 returnArray[counter++] = std::complex<double>(1.0) / complex_cast<double>(value);
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4356
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
void for_each(InputIt first, InputIt last, UnaryFunction f)
Definition: StlAlgorithms.hpp:213
std::uint32_t uint32
Definition: Types.hpp:40
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1487
Definition: Coordinate.hpp:44
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1143
NdArray< double > reciprocal(const NdArray< dtype > &inArray)
Definition: reciprocal.hpp:55