warp.atomic_sub#

warp.atomic_sub(arr: Array[Any], i: Int, value: Any) Any#
  • Kernel

  • Differentiable

Atomically subtracts value onto arr[i] and returns the original value of arr[i].

This function is automatically invoked when using the syntax arr[i] -= value.

warp.atomic_sub(
arr: Array[Any],
i: Int,
j: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically subtracts value onto arr[i,j] and returns the original value of arr[i,j].

This function is automatically invoked when using the syntax arr[i,j] -= value.

warp.atomic_sub(
arr: Array[Any],
i: Int,
j: Int,
k: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically subtracts value onto arr[i,j,k] and returns the original value of arr[i,j,k].

This function is automatically invoked when using the syntax arr[i,j,k] -= value.

warp.atomic_sub(
arr: Array[Any],
i: Int,
j: Int,
k: Int,
l: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically subtracts value onto arr[i,j,k,l] and returns the original value of arr[i,j,k,l].

This function is automatically invoked when using the syntax arr[i,j,k,l] -= value.

warp.atomic_sub(
arr: FabricArray[Any],
i: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically subtracts value onto arr[i] and returns the original value of arr[i].

This function is automatically invoked when using the syntax arr[i] -= value.

warp.atomic_sub(
arr: FabricArray[Any],
i: Int,
j: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically subtracts value onto arr[i,j] and returns the original value of arr[i,j].

This function is automatically invoked when using the syntax arr[i,j] -= value.

warp.atomic_sub(
arr: FabricArray[Any],
i: Int,
j: Int,
k: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically subtracts value onto arr[i,j,k] and returns the original value of arr[i,j,k].

This function is automatically invoked when using the syntax arr[i,j,k] -= value.

warp.atomic_sub(
arr: FabricArray[Any],
i: Int,
j: Int,
k: Int,
l: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically subtracts value onto arr[i,j,k,l] and returns the original value of arr[i,j,k,l].

This function is automatically invoked when using the syntax arr[i,j,k,l] -= value.

warp.atomic_sub(
arr: IndexedFabricArray[Any],
i: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically subtracts value onto arr[i] and returns the original value of arr[i].

This function is automatically invoked when using the syntax arr[i] -= value.

warp.atomic_sub(
arr: IndexedFabricArray[Any],
i: Int,
j: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically subtracts value onto arr[i,j] and returns the original value of arr[i,j].

This function is automatically invoked when using the syntax arr[i,j] -= value.

warp.atomic_sub(
arr: IndexedFabricArray[Any],
i: Int,
j: Int,
k: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically subtracts value onto arr[i,j,k] and returns the original value of arr[i,j,k].

This function is automatically invoked when using the syntax arr[i,j,k] -= value.

warp.atomic_sub(
arr: IndexedFabricArray[Any],
i: Int,
j: Int,
k: Int,
l: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically subtracts value onto arr[i,j,k,l] and returns the original value of arr[i,j,k,l].

This function is automatically invoked when using the syntax arr[i,j,k,l] -= value.