gather与scatter正好相反:

scatter是顺序输入根据map确定撒点输出位置。

gather是根据map确定输入元素的位置,输出是按顺序的。

如图:

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

具体可以查看 https://blog.csdn.net/seamanj/article/details/82976687

图片也是从这里获取的。

相关文章:

  • 2021-04-16
  • 2021-08-04
  • 2021-12-03
  • 2021-12-05
  • 2021-12-26
  • 2021-06-26
  • 2021-12-06
  • 2021-11-25
猜你喜欢
  • 2021-05-18
  • 2022-12-23
  • 2021-12-28
  • 2022-03-07
  • 2022-12-23
  • 2021-06-04
  • 2021-11-13
相关资源
相似解决方案