Title: wishlist · Issue #69 · arrayfire/arrayfire-python · GitHub
Open Graph Title: wishlist · Issue #69 · arrayfire/arrayfire-python
X Title: wishlist · Issue #69 · arrayfire/arrayfire-python
Description: cast numpy scalars to af scalars, so that things like np.sin(scalar)+af_array=np_array don't happen. It's confusing and people are bound to use math. or cmath. functions. Pyopencl does the casting silently. funny: af_array+np.sin(scalar)...
Open Graph Description: cast numpy scalars to af scalars, so that things like np.sin(scalar)+af_array=np_array don't happen. It's confusing and people are bound to use math. or cmath. functions. Pyopencl does the casting ...
X Description: cast numpy scalars to af scalars, so that things like np.sin(scalar)+af_array=np_array don't happen. It's confusing and people are bound to use math. or cmath. functions. Pyopencl does the ...
Opengraph URL: https://github.com/arrayfire/arrayfire-python/issues/69
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"wishlist","articleBody":"- cast numpy scalars to af scalars, so that things like `np.sin(scalar)+af_array=np_array` don't happen. It's confusing and people are bound to use `math.` or `cmath.` functions. Pyopencl does the casting silently. funny: `af_array+np.sin(scalar)=af_array`\n- change array layout to row-major as in numpy and C/C++ so that arrays copied from the host and arrays created on the device match (or is there a reason for column-major arrays?))\n- make the api a little more like numpy (I know, afnumpy is there) e.g. implement more array methods (`.abs()`, `.min()`, `.max()`, `.sum()`, `.imag`, `.real,` `.conj()`, `.transpose()` and so on) and rename the array attributes (`.elements()` to `.size`, `.dims()` to `.shape`, `af.moddims()` to `.reshape()`...)\n","author":{"url":"https://github.com/ZacDiggum","@type":"Person","name":"ZacDiggum"},"datePublished":"2016-03-24T15:12:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/69/arrayfire-python/issues/69"}
| 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:b84f3089-0e60-2bb9-3b53-6a74920c7802 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBB0:3651F6:2FAA299:3EA3FCB:696B81AE |
| html-safe-nonce | badcf30c56e46eb615e8f908b820b908f3d56838261d4bc85e0415f2cf7a1671 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkIwOjM2NTFGNjoyRkFBMjk5OjNFQTNGQ0I6Njk2QjgxQUUiLCJ2aXNpdG9yX2lkIjoiNzE2MTI2NDcwODMxMTAyNDA0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5037eb084ce8122e9b2acd359719b6891188c921816bf04f48b9c040ecac5a67 |
| hovercard-subject-tag | issue:143273200 |
| 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/arrayfire/arrayfire-python/69/issue_layout |
| twitter:image | https://opengraph.githubassets.com/59a05f816faee746fb575ce7619111fc54aae5bb6afe0cd5a24cc27515f6bdb2/arrayfire/arrayfire-python/issues/69 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/59a05f816faee746fb575ce7619111fc54aae5bb6afe0cd5a24cc27515f6bdb2/arrayfire/arrayfire-python/issues/69 |
| og:image:alt | cast numpy scalars to af scalars, so that things like np.sin(scalar)+af_array=np_array don't happen. It's confusing and people are bound to use math. or cmath. functions. Pyopencl does the casting ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ZacDiggum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/arrayfire/arrayfire-python git https://github.com/arrayfire/arrayfire-python.git |
| octolytics-dimension-user_id | 5395442 |
| octolytics-dimension-user_login | arrayfire |
| octolytics-dimension-repository_id | 37599258 |
| octolytics-dimension-repository_nwo | arrayfire/arrayfire-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 37599258 |
| octolytics-dimension-repository_network_root_nwo | arrayfire/arrayfire-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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width