46 template<
typename dtype>
51 return std::complex<dtype>(
inReal);
62 template<
typename dtype>
77 template<
typename dtype>
84 [](
dtype real) ->
auto { return nc::complex(real); });
97 template<
typename dtype>
#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
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
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59