Skip to content

Expression system requires evaluation in many contexts #2513

Open
@spectre-ns

Description

@spectre-ns

I'm trying to figure out why the code snippet requires assignment to a concrete xarray or xt::eval called to compile. I should be able to make these all auto and do it lazily right?

image

Am I doing something wrong? Adding SIMD support requires me to add an extra eval when calculating angle:
image

The snippet above doesn't compile with the following error:
Error C2664 'xsimd::batch<T,xsimd::default_arch> xsimd::batch<T,xsimd::default_arch>::load_unaligned(const double *,const double *)': cannot convert argument 1 from 'const T *' to 'const T *' \xtensor\xiterator.hpp 560

Finally, I expect this to work but it doesn't:
image

We the following error
Error C2296 '%': illegal, left operand has type '_Ty' xtensor\xoperation.hpp 111

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions