【thrust庫】thrust::scatter 和 thrust::gather

gather與scatter正好相反: scatter是順序輸入根據map確定撒點輸出位置。 gather是根據map確定輸入元素的位置,輸出是按順序的。 如圖: 具體可以查看 https://blog.csdn.net/seamanj/article/details/82976687 圖片也是從這裏獲取的。
相關文章
相關標籤/搜索