 |
NumCpp
1.0
A C++ implementation of the Python Numpy library
|
Go to the documentation of this file.
55 template<
typename dtype>
64 [&returnArray, &counter](dtype value) noexcept ->
void
66 returnArray[counter++] = 1.0 / static_cast<double>(value);
86 template<
typename dtype>
95 [&returnArray, &counter](std::complex<dtype> value) ->
void
97 returnArray[counter++] = std::complex<double>(1.0) / complex_cast<double>(value);
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4296
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:38
void for_each(InputIt first, InputIt last, UnaryFunction f) noexcept
Definition: StlAlgorithms.hpp:214
std::uint32_t uint32
Definition: Types.hpp:41
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1491
Definition: Coordinate.hpp:45
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1147
NdArray< double > reciprocal(const NdArray< dtype > &inArray)
Definition: reciprocal.hpp:56