text: //==============================================================================
  //         Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
  //         Copyright 2009 - 2011 LRI    UMR 8623 CNRS/Univ Paris Sud XI
  //
  //          Distributed under the Boost Software License, Version 1.0.
  //                 See accompanying file LICENSE.txt or copy at
  //                     http://www.boost.org/LICENSE_1_0.txt
  //==============================================================================
  #ifndef NT2_TOOLBOX_COMPLEX_FUNCTIONS_COMPLEX_GENERIC_PURE_HPP_INCLUDED
  #define NT2_TOOLBOX_COMPLEX_FUNCTIONS_COMPLEX_GENERIC_PURE_HPP_INCLUDED
  #include <nt2/toolbox/complex/functions/pure.hpp>
  #include <nt2/include/functions/imag.hpp>
  #include <nt2/sdk/complex/complex.hpp>
  #include <nt2/sdk/complex/meta/as_real.hpp>
  
  namespace nt2 { namespace ext
  {
    NT2_FUNCTOR_IMPLEMENTATION( nt2::tag::pure_, tag::cpu_, (A0)
                              , (generic_< complex_< arithmetic_<A0> > >)
                              )
    {
      typedef typename meta::as_imaginary<A0>::type result_type;
      BOOST_FORCEINLINE result_type operator()(A0 const& a0) const
      {
        return bitwise_cast<result_type>(nt2::imag(a0));
      }
    };
  
  } }
  
  #endif
  