I would like to use thrust::transform_reduce to change the values of an array as well as perform a reduction. However, transform_reduce seems require t
thrust::transform_reduce
transform_reduce