%PDF- %PDF-
| Direktori : /proc/self/root/lib/python3/dist-packages/pythran/pythonic/numpy/ |
| Current File : //proc/self/root/lib/python3/dist-packages/pythran/pythonic/numpy/bitwise_not.hpp |
#ifndef PYTHONIC_NUMPY_BITWISENOT_HPP
#define PYTHONIC_NUMPY_BITWISENOT_HPP
#include "pythonic/include/numpy/bitwise_not.hpp"
#include "pythonic/utils/functor.hpp"
#include "pythonic/utils/numpy_traits.hpp"
#include "pythonic/types/numpy_op_helper.hpp"
PYTHONIC_NS_BEGIN
namespace numpy
{
namespace wrapper
{
template <class A>
decltype(~std::declval<A const &>()) bitwise_not(A const &a)
{
return ~a;
}
bool bitwise_not(bool t0)
{
return !t0;
}
}
#define NUMPY_NARY_FUNC_NAME bitwise_not
#define NUMPY_NARY_FUNC_SYM wrapper::bitwise_not
#include "pythonic/types/numpy_nary_expr.hpp"
}
PYTHONIC_NS_END
// ndarray have to be include after as bitwise_not is used as a numpy_operator
#include "pythonic/types/ndarray.hpp"
#endif