launchGatherFloat#
Fully qualified name: isaacsim::physics::newton::tensors::launchGatherFloat
- bool isaacsim::physics::newton::tensors::launchGatherFloat(
- const float *src,
- float *dst,
- const int *devIndices,
- int numIndices,
- void *stream = nullptr,
Gather scalar floats by index, writing zero for
-1entries.dst[i] = devIndices[i] >= 0 ? src[devIndices[i]] : 0.0fforiin[0, numIndices).- Parameters:
src – Device pointer to the source scalar array.
dst – Device pointer to the destination array, length
numIndices.devIndices – Device index array, length
numIndices.numIndices – Number of gather slots.
stream – CUDA stream to launch on.
- Returns:
trueif the launch succeeded.