Skip to content

Document shape argument concept / requirements #2266

@burnpanck

Description

@burnpanck

I am currently struggling to apply xt::reshape_view onto a xt::xtensor<T,N> into shape given by a xt::xtensor<std::uint16_t,1>. What exactly passes for the shape argument of that function? I have tried xt:cast<std::size_t> to no avail, so I'm a bit struggling with if the problem is with the element type or the container, or possibly others.
Previously, I had a similar issue with xt::zeros. In the case of xt::empty, it's clearly documented and obvious that only specific types pass, but that one is of course somewhat special.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions