Loading src/include/types.h +2 −2 Changes for src/include/types.h: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -17,12 +17,12 @@ typedef __complex__ double dcomplex; * \param z: `complex double` The argument of the function. * \return rz: `double` The real part of the argument. */ double real(dcomplex z) { return __real__ z; } double real(dcomplex z); /*! \brief Get the imaginary part of a complex number. * * \param z: `complex double` The argument of the function. * \return iz: `double` The imaginary part of the argument. */ double imag(dcomplex z) { return __imag__ z; } double imag(dcomplex z); #endif src/libnptm/types.cpp 0 → 100644 +13 −0 Changes for src/libnptm/types.cpp: 13 added lines, 0 removed lines. Original line number Diff line number Diff line /* Distributed under the terms of GPLv3 or later. See COPYING for details. */ /*! \file types.cpp * * \brief Implementation of the functions connected with types. */ #ifndef INCLUDE_TYPES_H_ #include "../include/types.h" #endif double real(dcomplex z) { return __real__ z; } double imag(dcomplex z) { return __imag__ z; } Loading
src/include/types.h +2 −2 Changes for src/include/types.h: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -17,12 +17,12 @@ typedef __complex__ double dcomplex; * \param z: `complex double` The argument of the function. * \return rz: `double` The real part of the argument. */ double real(dcomplex z) { return __real__ z; } double real(dcomplex z); /*! \brief Get the imaginary part of a complex number. * * \param z: `complex double` The argument of the function. * \return iz: `double` The imaginary part of the argument. */ double imag(dcomplex z) { return __imag__ z; } double imag(dcomplex z); #endif
src/libnptm/types.cpp 0 → 100644 +13 −0 Changes for src/libnptm/types.cpp: 13 added lines, 0 removed lines. Original line number Diff line number Diff line /* Distributed under the terms of GPLv3 or later. See COPYING for details. */ /*! \file types.cpp * * \brief Implementation of the functions connected with types. */ #ifndef INCLUDE_TYPES_H_ #include "../include/types.h" #endif double real(dcomplex z) { return __real__ z; } double imag(dcomplex z) { return __imag__ z; }