Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing the result of select throws an error #89

Open
martinRenou opened this issue May 23, 2018 · 0 comments
Open

Printing the result of select throws an error #89

martinRenou opened this issue May 23, 2018 · 0 comments

Comments

@martinRenou
Copy link
Member

auto x = select(var1, {{"abscissa", "a"}});

std::cout << x;

Throws this error:

In file included from input_line_7:4:
In file included from /home/user/local/include/xtensor/xio.hpp:21:
In file included from /home/user/local/include/xtensor/xmath.hpp:27:
/home/user/local/include/xtensor/xstrided_view.hpp:1092:111: error: no member named 'layout' in 'xf::xvariable_view<xf::xvariable<xf::xcoordinate<xtl::xbasic_fixed_string<char, 55, string_policy::silent_error, std::char_traits<char> >, unsigned long, xf::hash_map_tag,
      xtl::mpl::vector<int, unsigned long, char, xtl::xbasic_fixed_string<char, 55, string_policy::silent_error, std::char_traits<char> > > >, xt::xoptional_assembly<xt::xarray_container<xt::uvector<double,
      std::allocator<double> >, xt::layout_type::row_major, xt::svector<unsigned long, 4, std::allocator<unsigned long>, true>, xt::xtensor_expression_tag>, xt::xarray_container<xt::uvector<bool,
      std::allocator<bool> >, xt::layout_type::row_major, xt::svector<unsigned long, 4, std::allocator<unsigned long>, true>, xt::xtensor_expression_tag> > > &>'
        auto args = detail::get_strided_view_args(e.shape(), detail::get_strides(e), detail::get_offset(e), e.layout(), slices);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant