46 template<
typename dtype>
51 return std::complex<dtype>(inReal);
62 template<
typename dtype>
67 return std::complex<dtype>(inReal, inImag);
77 template<
typename dtype>
84 [](dtype
real) ->
auto { return nc::complex(real); });
97 template<
typename dtype>
110 [](dtype
real, dtype
imag) ->
auto { return nc::complex(real, imag); });
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:37
#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:4511
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1673
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition: StlAlgorithms.hpp:775
Definition: Cartesian.hpp:40
auto imag(const std::complex< dtype > &inValue)
Definition: imag.hpp:47
auto complex(dtype inReal)
Definition: complex.hpp:47
auto real(const std::complex< dtype > &inValue)
Definition: real.hpp:48