Skip to content

Commit

Permalink
improve indexview, and stepper, fix bug in forward_shape, add nonzero…
Browse files Browse the repository at this point in the history
… and single argument where
  • Loading branch information
wolfv committed Feb 1, 2017
1 parent eab207d commit dc096c6
Show file tree
Hide file tree
Showing 5 changed files with 264 additions and 166 deletions.
5 changes: 3 additions & 2 deletions include/xtensor/xbroadcast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ namespace xt

namespace detail
{
template <class R, class A>
template <class R, class A, class E = void>
struct shape_forwarder
{
static inline R run(const A& r)
Expand All @@ -151,7 +151,8 @@ namespace xt
};

template <class I, std::size_t L, class A>
struct shape_forwarder<std::array<I, L>, A>
struct shape_forwarder<std::array<I, L>, A,
typename std::enable_if<!std::is_same<std::array<I, L>, A>::value>::type>
{
using R = std::array<I, L>;

Expand Down
Loading

0 comments on commit dc096c6

Please sign in to comment.