{"action":"created","issue":{"url":"https://api.github.com/repos/chapel-lang/chapel/issues/8802","repository_url":"https://api.github.com/repos/chapel-lang/chapel","labels_url":"https://api.github.com/repos/chapel-lang/chapel/issues/8802/labels{/name}","comments_url":"https://api.github.com/repos/chapel-lang/chapel/issues/8802/comments","events_url":"https://api.github.com/repos/chapel-lang/chapel/issues/8802/events","html_url":"https://github.com/chapel-lang/chapel/issues/8802","id":304558306,"number":8802,"title":"Array & Domain Concatenation","user":{"login":"ben-albrecht","id":3595449,"avatar_url":"https://avatars1.githubusercontent.com/u/3595449?v=4","gravatar_id":"","url":"https://api.github.com/users/ben-albrecht","html_url":"https://github.com/ben-albrecht","followers_url":"https://api.github.com/users/ben-albrecht/followers","following_url":"https://api.github.com/users/ben-albrecht/following{/other_user}","gists_url":"https://api.github.com/users/ben-albrecht/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-albrecht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-albrecht/subscriptions","organizations_url":"https://api.github.com/users/ben-albrecht/orgs","repos_url":"https://api.github.com/users/ben-albrecht/repos","events_url":"https://api.github.com/users/ben-albrecht/events{/privacy}","received_events_url":"https://api.github.com/users/ben-albrecht/received_events","type":"User","site_admin":false},"labels":[{"id":496591534,"url":"https://api.github.com/repos/chapel-lang/chapel/labels/area:%20Modules","name":"area: Modules","color":"d4c5f9","default":false},{"id":496603397,"url":"https://api.github.com/repos/chapel-lang/chapel/labels/type:%20Feature%20Request","name":"type: Feature Request","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-12T22:07:58Z","updated_at":"2018-05-08T16:30:16Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Currently, there is no elegant way to concatenate *N*-D arrays. This would be a nice feature to provide as part of the array and domain interface, similar to the [`numpy.concatenate`](https://docs.scipy.org/doc/numpy/reference/generated/numpy.concatenate.html) function in Python.\r\n\r\nThe direction of concatenation could be specified by an `axis` argument similar to `numpy.concatenate`.\r\n\r\n\r\nSimple example:\r\n\r\n```chpl\r\nvar A: [1..2, 1..4] int;\r\n/*\r\n0 0 0 0\r\n0 0 0 0\r\n*/\r\n\r\nvar B: [1..2, 1..4] int = 1;\r\n/*\r\n1 1 1 1\r\n1 1 1 1\r\n*/\r\n\r\n// Default axis is 0, i.e. stacks vertically\r\nvar AB = concatenate(A, B);\r\n/*\r\n0 0 0 0\r\n0 0 0 0\r\n1 1 1 1\r\n1 1 1 1\r\n*/\r\n```\r\n\r\nThis could work similarly for domains."},"comment":{"url":"https://api.github.com/repos/chapel-lang/chapel/issues/comments/387462379","html_url":"https://github.com/chapel-lang/chapel/issues/8802#issuecomment-387462379","issue_url":"https://api.github.com/repos/chapel-lang/chapel/issues/8802","id":387462379,"user":{"login":"bradcray","id":7536222,"avatar_url":"https://avatars0.githubusercontent.com/u/7536222?v=4","gravatar_id":"","url":"https://api.github.com/users/bradcray","html_url":"https://github.com/bradcray","followers_url":"https://api.github.com/users/bradcray/followers","following_url":"https://api.github.com/users/bradcray/following{/other_user}","gists_url":"https://api.github.com/users/bradcray/gists{/gist_id}","starred_url":"https://api.github.com/users/bradcray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradcray/subscriptions","organizations_url":"https://api.github.com/users/bradcray/orgs","repos_url":"https://api.github.com/users/bradcray/repos","events_url":"https://api.github.com/users/bradcray/events{/privacy}","received_events_url":"https://api.github.com/users/bradcray/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T16:30:16Z","updated_at":"2018-05-08T16:30:16Z","author_association":"OWNER","body":"See issue #9452 for an issue related to what Michael is talking about."}}
{"actor":{"display_login":"bradcray"}}