launchGatherFloatStrided#
Fully qualified name: isaacsim::physics::newton::tensors::launchGatherFloatStrided
- bool isaacsim::physics::newton::tensors::launchGatherFloatStrided(
- const float *src,
- float *dst,
- const int *devIndices,
- int numIndices,
- unsigned dstStride,
- void *stream = nullptr,
Gather scalar floats by index, writing zero for
-1entries.dst[i * dstStride] = 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 * dstStride.devIndices – Device index array, length
numIndices.numIndices – Number of gather slots.
dstStride – stride for writing to destination.
stream – CUDA stream to launch on.
- Returns:
trueif the launch succeeded.