Title: array[::-1] size reported as 0 · Issue #77 · ndarray/Boost.NumPy · GitHub
Open Graph Title: array[::-1] size reported as 0 · Issue #77 · ndarray/Boost.NumPy
X Title: array[::-1] size reported as 0 · Issue #77 · ndarray/Boost.NumPy
Description: I have a function which accepts nd::Array
Open Graph Description: I have a function which accepts nd::Array
X Description: I have a function which accepts nd::Array<complex,1,0> const&. I get the size from boost::size() I just noticed that when I pass it a python array x[::-1] then boost::size(x) -> 0! Is ...
Opengraph URL: https://github.com/ndarray/Boost.NumPy/issues/77
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"array[::-1] size reported as 0","articleBody":"I have a function which accepts nd::Array\u003ccomplex,1,0\u003e const\u0026. I get the size from\r\nboost::size()\r\n\r\nI just noticed that when I pass it a python array\r\nx[::-1]\r\n\r\nthen boost::size(x) -\u003e 0!\r\n\r\nIs this expected? I find it hard to believe that I've been using ndarray for years and never saw this, since I have lots of code that works this way (accepts nd::Array\u003cT,1,0\u003e and uses boost::size)","author":{"url":"https://github.com/nbecker","@type":"Person","name":"nbecker"},"datePublished":"2017-06-15T11:59:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/77/Boost.NumPy/issues/77"}
| 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:0c447e0c-30d6-11cc-00b7-9028b5ae3b58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E45A:51557:12CFA80:192D50E:69705D4B |
| html-safe-nonce | 674c21476dd9f457e4ab1c3a38b9eeb61c19c0c342800d89bd2d453843923058 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDVBOjUxNTU3OjEyQ0ZBODA6MTkyRDUwRTo2OTcwNUQ0QiIsInZpc2l0b3JfaWQiOiI2Njk1MzMyNDYxMTc0MzQ5MTMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | acbeb2eea4ade43e4c891d1a6313bf62f26bbf38e19e0044ded912fbbe505e3c |
| hovercard-subject-tag | issue:236166717 |
| 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/ndarray/Boost.NumPy/77/issue_layout |
| twitter:image | https://opengraph.githubassets.com/59d8d25fba0d95d001af6505db41e6edc11547760df6dfbfbe4c0cef03439789/ndarray/Boost.NumPy/issues/77 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/59d8d25fba0d95d001af6505db41e6edc11547760df6dfbfbe4c0cef03439789/ndarray/Boost.NumPy/issues/77 |
| og:image:alt | I have a function which accepts nd::Array |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nbecker |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/ndarray/Boost.NumPy git https://github.com/ndarray/Boost.NumPy.git |
| octolytics-dimension-user_id | 1451802 |
| octolytics-dimension-user_login | ndarray |
| octolytics-dimension-repository_id | 3588766 |
| octolytics-dimension-repository_nwo | ndarray/Boost.NumPy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3588766 |
| octolytics-dimension-repository_network_root_nwo | ndarray/Boost.NumPy |
| 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 | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width