You are viewing an older version (1.17.1).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 1.17.1 / scipy / _lib / array_api_extra / _lib / _at / at / subtract

function

scipy._lib.array_api_extra._lib._at:at.subtract

source: /scipy/_lib/array_api_extra/_lib/_at.py:386

Signature

def subtract(self, y: Array | complex, /, copy: bool | None = None, xp: ModuleType | None = None) → Array

Summary

Apply x[idx] -= y and return the updated array.

Aliases

  • scipy.differentiate.xpx.at.subtract