Title: af::array constructor from initializer list · Issue #2825 · arrayfire/arrayfire · GitHub
Open Graph Title: af::array constructor from initializer list · Issue #2825 · arrayfire/arrayfire
X Title: af::array constructor from initializer list · Issue #2825 · arrayfire/arrayfire
Description: As an option for short array, in addition to int h_buffer[] = {23, 34, 18, 99, 34}; array A(4, h_buffer); can we get array A(4, {23, 34, 18, 99, 34}); which will allocate the memory and initialize it with values from initializer list.
Open Graph Description: As an option for short array, in addition to int h_buffer[] = {23, 34, 18, 99, 34}; array A(4, h_buffer); can we get array A(4, {23, 34, 18, 99, 34}); which will allocate the memory and initialize ...
X Description: As an option for short array, in addition to int h_buffer[] = {23, 34, 18, 99, 34}; array A(4, h_buffer); can we get array A(4, {23, 34, 18, 99, 34}); which will allocate the memory and initialize ...
Opengraph URL: https://github.com/arrayfire/arrayfire/issues/2825
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"af::array constructor from initializer list","articleBody":"As an option for short array, in addition to\r\n```\r\nint h_buffer[] = {23, 34, 18, 99, 34};\r\narray A(4, h_buffer); \r\n```\r\ncan we get \r\n```\r\narray A(4, {23, 34, 18, 99, 34});\r\n```\r\nwhich will allocate the memory and initialize it with values from initializer list.","author":{"url":"https://github.com/pauljurczak","@type":"Person","name":"pauljurczak"},"datePublished":"2020-04-06T11:52:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2825/arrayfire/issues/2825"}
| 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:3c334de7-b6d0-4bbd-fe9e-ab5e4e9c836a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3D4:F431C:4BEB5CA:671659F:6964EC62 |
| html-safe-nonce | 83e2329dde35ec262b437052119d7e0cdaeee056628ac95d43722670e48bb915 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0Q0OkY0MzFDOjRCRUI1Q0E6NjcxNjU5Rjo2OTY0RUM2MiIsInZpc2l0b3JfaWQiOiI2NTc1ODU3MDQ1MjA4MzYyMDgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a5ced36d5bfcaa6a7e7142555a63f1b536ff9844fe2e7c1618d40603c4a71c5b |
| hovercard-subject-tag | issue:595050134 |
| 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/2825/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f4c2a0718c28b73165b326547effc1c0ecb4a85ae0e45e7c850868a006801150/arrayfire/arrayfire/issues/2825 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4c2a0718c28b73165b326547effc1c0ecb4a85ae0e45e7c850868a006801150/arrayfire/arrayfire/issues/2825 |
| og:image:alt | As an option for short array, in addition to int h_buffer[] = {23, 34, 18, 99, 34}; array A(4, h_buffer); can we get array A(4, {23, 34, 18, 99, 34}); which will allocate the memory and initialize ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pauljurczak |
| hostname | github.com |
| expected-hostname | github.com |
| None | 53cd8ae9b65b7c4a0ad545ffeb3216839259a92733857ba426906c0655c5419d |
| turbo-cache-control | no-preview |
| go-import | github.com/arrayfire/arrayfire git https://github.com/arrayfire/arrayfire.git |
| octolytics-dimension-user_id | 5395442 |
| octolytics-dimension-user_login | arrayfire |
| octolytics-dimension-repository_id | 25889802 |
| octolytics-dimension-repository_nwo | arrayfire/arrayfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 25889802 |
| octolytics-dimension-repository_network_root_nwo | arrayfire/arrayfire |
| 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 | c140758368c0a01881f61b83770bd75cfe81e2c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width