{"action":"created","issue":{"url":"https://api.github.com/repos/halide/Halide/issues/3415","repository_url":"https://api.github.com/repos/halide/Halide","labels_url":"https://api.github.com/repos/halide/Halide/issues/3415/labels{/name}","comments_url":"https://api.github.com/repos/halide/Halide/issues/3415/comments","events_url":"https://api.github.com/repos/halide/Halide/issues/3415/events","html_url":"https://github.com/halide/Halide/issues/3415","id":376183993,"node_id":"MDU6SXNzdWUzNzYxODM5OTM=","number":3415,"title":"Using Vector Types","user":{"login":"nitish2112","id":8608667,"node_id":"MDQ6VXNlcjg2MDg2Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/8608667?v=4","gravatar_id":"","url":"https://api.github.com/users/nitish2112","html_url":"https://github.com/nitish2112","followers_url":"https://api.github.com/users/nitish2112/followers","following_url":"https://api.github.com/users/nitish2112/following{/other_user}","gists_url":"https://api.github.com/users/nitish2112/gists{/gist_id}","starred_url":"https://api.github.com/users/nitish2112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitish2112/subscriptions","organizations_url":"https://api.github.com/users/nitish2112/orgs","repos_url":"https://api.github.com/users/nitish2112/repos","events_url":"https://api.github.com/users/nitish2112/events{/privacy}","received_events_url":"https://api.github.com/users/nitish2112/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-31T22:26:00Z","updated_at":"2018-10-31T23:33:32Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nIt seems like in Halide we can create vector data types by using the \"lanes\". For example, Float(32, 4) is a vector of 4 floats. However, I am not sure how can I use the individual elements of the vector to do some computation. For example how can I do this? \r\n\r\n```\r\nlet x = .... // expr is of type Float(32,4)\r\nfor ( i, 0, 4 ) {\r\n  temp(0) += x[i] * i\r\n}\r\n``` \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/halide/Halide/issues/comments/434882772","html_url":"https://github.com/halide/Halide/issues/3415#issuecomment-434882772","issue_url":"https://api.github.com/repos/halide/Halide/issues/3415","id":434882772,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDg4Mjc3Mg==","user":{"login":"abadams","id":515398,"node_id":"MDQ6VXNlcjUxNTM5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/515398?v=4","gravatar_id":"","url":"https://api.github.com/users/abadams","html_url":"https://github.com/abadams","followers_url":"https://api.github.com/users/abadams/followers","following_url":"https://api.github.com/users/abadams/following{/other_user}","gists_url":"https://api.github.com/users/abadams/gists{/gist_id}","starred_url":"https://api.github.com/users/abadams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadams/subscriptions","organizations_url":"https://api.github.com/users/abadams/orgs","repos_url":"https://api.github.com/users/abadams/repos","events_url":"https://api.github.com/users/abadams/events{/privacy}","received_events_url":"https://api.github.com/users/abadams/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T23:33:32Z","updated_at":"2018-10-31T23:33:32Z","author_association":"MEMBER","body":"The type of the allocation will be Float(32, 1), with an allocation size of 4. The store would use an index of ramp(0, 1, 4) to store an entire vector, and the loads would use scalar indices (e.g. '2')."}}
{"actor":{"display_login":"abadams"}}