【thrust库】thrust::scatter 和 thrust::gather

gather与scatter正好相反: scatter是顺序输入根据map确定撒点输出位置。 gather是根据map确定输入元素的位置,输出是按顺序的。 如图: 具体可以查看 https://blog.csdn.net/seamanj/article/details/82976687 图片也是从这里获取的。
相关文章
相关标签/搜索