#ifndef SPROUT_COMPLEX_NEAREST_HPP #define SPROUT_COMPLEX_NEAREST_HPP #include #include #include #include #include #include namespace sprout { template inline SPROUT_CONSTEXPR sprout::complex ceil(sprout::complex const& x) { return sprout::complex(sprout::ceil(x.real()), sprout::ceil(x.imag())); } template inline SPROUT_CONSTEXPR sprout::complex floor(sprout::complex const& x) { return sprout::complex(sprout::floor(x.real()), sprout::floor(x.imag())); } template inline SPROUT_CONSTEXPR sprout::complex trunc(sprout::complex const& x) { return sprout::complex(sprout::trunc(x.real()), sprout::trunc(x.imag())); } template inline SPROUT_CONSTEXPR sprout::complex round(sprout::complex const& x) { return sprout::complex(sprout::round(x.real()), sprout::round(x.imag())); } } // namespace sprout #endif // #ifndef SPROUT_COMPLEX_NEAREST_HPP