// // Copyright (C) 2011-15 DyND Developers // BSD 2-Clause License, see LICENSE.txt // #pragma once #include namespace dynd { namespace nd { template struct conj_kernel : base_strided_kernel, 1> { typedef typename type_of::type complex_type; void single(char *dst, char *const *src) { *reinterpret_cast(dst) = dynd::conj(*reinterpret_cast(src[0])); } }; } // namespace dynd::nd namespace ndt { template struct traits> { static type equivalent() { return callable_type::make(make_type::complex_type>(), {make_type::complex_type>()}); } }; } // namespace dynd::ndt } // namespace dynd