Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

problem calculating quantile on pytensor #286

Open
@ThibHlln

Description

@ThibHlln

Hi,

The new addedxt::quantile seems not to play nicely withpytensor.

For me, the following :

xt::pytensor<double,2> arr            {{5.3,4.3,5.3 },             {4.2,4.2,5.2 },             {5.7,4.7,5.7 },             {2.3,4.3,2.3 }};auto q = xt::quantile(arr, {0.3,0.7},1);

raises :

~/xtensor/include/xtensor/xsort.hpp:463:31: error: non-constant-expression cannot be narrowed from type 'xt::xcontainer<xt::pytensor<double, 2, xt::layout_type::dynamic>>::size_type' (aka 'unsigned long') to 'long' in initializer list [-Wc++11-narrowing]
R ev = R::from_shape({de.size()});

I am usingxtl==0.7.5,xtensor==0.24.4,xtensor-python==0.26.1,pybind11==2.10.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp