Title: RFC: add `angle` for computing the argument of a complex number · Issue #595 · data-apis/array-api · GitHub
Open Graph Title: RFC: add `angle` for computing the argument of a complex number · Issue #595 · data-apis/array-api
X Title: RFC: add `angle` for computing the argument of a complex number · Issue #595 · data-apis/array-api
Description: This RFC requests to include a new API in the array API specification for the purpose of computing the argument of a complex number. Overview Based on array comparison data, the API is available in the majority of libraries in the PyData...
Open Graph Description: This RFC requests to include a new API in the array API specification for the purpose of computing the argument of a complex number. Overview Based on array comparison data, the API is available in...
X Description: This RFC requests to include a new API in the array API specification for the purpose of computing the argument of a complex number. Overview Based on array comparison data, the API is available in...
Opengraph URL: https://github.com/data-apis/array-api/issues/595
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RFC: add `angle` for computing the argument of a complex number","articleBody":"This RFC requests to include a new API in the array API specification for the purpose of computing the argument of a complex number.\r\n\r\n## Overview\r\n\r\nBased on array comparison [data](https://github.com/data-apis/array-api-comparison/blob/7ecfa9867ec43a28e914b35868c041443d31d772/data/common_apis.csv#L8), the API is available in the majority of libraries in the PyData ecosystem.\r\n\r\nThe Array API specification does not currently include an API for computing the argument of a complex number.\r\n\r\n## Prior art\r\n\r\n- NumPy: \u003chttps://numpy.org/doc/stable/reference/generated/numpy.angle.html>\r\n- PyTorch: \u003chttps://pytorch.org/docs/stable/generated/torch.angle.html>\r\n- TensorFlow: \u003chttps://www.tensorflow.org/api_docs/python/tf/math/angle>\r\n- C99: \u003chttps://en.cppreference.com/w/c/numeric/complex/carg>\r\n\r\n## Proposal:\r\n\r\n```python\r\ndef angle(x: array, /) -> array\r\n```\r\n\r\n## Questions\r\n\r\n- okay with `angle` as name? arg? phase?\r\n- only operate on complex arrays, similar to `conj` et al?\r\n\r\ncc @kgryte ","author":{"url":"https://github.com/steff456","@type":"Person","name":"steff456"},"datePublished":"2023-02-14T22:15:36Z","url":"https://github.com/data-apis/array-api/issues/595"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:662ad493-011b-c0e3-d909-9f3ac9eea48e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8FD6:B5253:22791B6:2DCBDB1:6B005328 |
| html-safe-nonce | 1de8d0504374994c989ea843bc466e80945714bb2108ff0b98a0c3282b16918b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkQ2OkI1MjUzOjIyNzkxQjY6MkRDQkRCMTo2QjAwNTMyOCIsInZpc2l0b3JfaWQiOiI1Mzk1MDE4ODg4ODU5NjM2NTIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 45f288096446bc1e69d1e807a3e06606a593fec8f0d5d3d58922f09c1da8087c |
| hovercard-subject-tag | issue:1584905688 |
| 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/data-apis/array-api/595/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aa3ffd7bf79a35dbddd0fc4a93038d22f1376b8c69c1e2dbd093e7e7f8e583bd/data-apis/array-api/issues/595 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aa3ffd7bf79a35dbddd0fc4a93038d22f1376b8c69c1e2dbd093e7e7f8e583bd/data-apis/array-api/issues/595 |
| og:image:alt | This RFC requests to include a new API in the array API specification for the purpose of computing the argument of a complex number. Overview Based on array comparison data, the API is available in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | steff456 |
| hostname | github.com |
| expected-hostname | github.com |
| None | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| turbo-cache-control | no-preview |
| go-import | github.com/data-apis/array-api git https://github.com/data-apis/array-api.git |
| octolytics-dimension-user_id | 65124399 |
| octolytics-dimension-user_login | data-apis |
| octolytics-dimension-repository_id | 262820281 |
| octolytics-dimension-repository_nwo | data-apis/array-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 262820281 |
| octolytics-dimension-repository_network_root_nwo | data-apis/array-api |
| 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 | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width