Title: problem calculating quantile on pytensor · Issue #286 · xtensor-stack/xtensor-python · GitHub
Open Graph Title: problem calculating quantile on pytensor · Issue #286 · xtensor-stack/xtensor-python
X Title: problem calculating quantile on pytensor · Issue #286 · xtensor-stack/xtensor-python
Description: Hi, The new added xt::quantile seems not to play nicely with pytensor. For me, the following : xt::pytensor
Open Graph Description: Hi, The new added xt::quantile seems not to play nicely with pytensor. For me, the following : xt::pytensor
X Description: Hi, The new added xt::quantile seems not to play nicely with pytensor. 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...
Opengraph URL: https://github.com/xtensor-stack/xtensor-python/issues/286
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"problem calculating quantile on pytensor","articleBody":"Hi,\r\n\r\nThe new added `xt::quantile` seems not to play nicely with `pytensor`.\r\n\r\nFor me, the following :\r\n\r\n```cpp\r\nxt::pytensor\u003cdouble, 2\u003e arr\r\n {{ 5.3, 4.3, 5.3 },\r\n { 4.2, 4.2, 5.2 },\r\n { 5.7, 4.7, 5.7 },\r\n { 2.3, 4.3, 2.3 }};\r\n\r\nauto q = xt::quantile(arr, {0.3, 0.7}, 1);\r\n```\r\nraises :\r\n\r\n\u003e ~/xtensor/include/xtensor/xsort.hpp:463:31: error: non-constant-expression cannot be narrowed from type 'xt::xcontainer\u003cxt::pytensor\u003cdouble, 2, xt::layout_type::dynamic\u003e\u003e::size_type' (aka 'unsigned long') to 'long' in initializer list [-Wc++11-narrowing]\r\n R ev = R::from_shape({de.size()});\r\n\r\nI am using `xtl==0.7.5`, `xtensor==0.24.4`, `xtensor-python==0.26.1`, `pybind11==2.10.3`.\r\n","author":{"url":"https://github.com/ThibHlln","@type":"Person","name":"ThibHlln"},"datePublished":"2023-01-31T14:56:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/286/xtensor-python/issues/286"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d504485b-e63a-9737-6b25-22b6e97d8415 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B144:2CE08F:3292C5E:460AD7F:696505DC |
| html-safe-nonce | e89cecc676fa3a3c81d7d27660663bfda14f5788dcc545151d1b2cdcb889452f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTQ0OjJDRTA4RjozMjkyQzVFOjQ2MEFEN0Y6Njk2NTA1REMiLCJ2aXNpdG9yX2lkIjoiNzA1NTEyMjQyNTYxMDMwNzAzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0f516663f8d9c96f5d4396530292cd87ecd78cb469b9f6ad5ab3646a3b7633a1 |
| hovercard-subject-tag | issue:1564471345 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/xtensor-stack/xtensor-python/286/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b020d2802a58c38a0e358c73db1c550f239061330a8e0c326d2fa53b62b770ba/xtensor-stack/xtensor-python/issues/286 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b020d2802a58c38a0e358c73db1c550f239061330a8e0c326d2fa53b62b770ba/xtensor-stack/xtensor-python/issues/286 |
| og:image:alt | Hi, The new added xt::quantile seems not to play nicely with pytensor. For me, the following : xt::pytensor |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ThibHlln |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5ab78b37645aad755632aa5585d27672721953ada88ee2fd72e109792b528c77 |
| turbo-cache-control | no-preview |
| go-import | github.com/xtensor-stack/xtensor-python git https://github.com/xtensor-stack/xtensor-python.git |
| octolytics-dimension-user_id | 56542697 |
| octolytics-dimension-user_login | xtensor-stack |
| octolytics-dimension-repository_id | 73431892 |
| octolytics-dimension-repository_nwo | xtensor-stack/xtensor-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 73431892 |
| octolytics-dimension-repository_network_root_nwo | xtensor-stack/xtensor-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ad8012c2b69c74234a24730a05d4683cea54801a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width