bundles / scipy 1.17.1 / scipy / _lib / array_api_compat / common / _helpers / is_writeable_array
function
scipy._lib.array_api_compat.common._helpers:is_writeable_array
source: /scipy/_lib/array_api_compat/common/_helpers.py :957
Signature
def is_writeable_array ( x : object ) → TypeGuard[_ArrayApiObj] Summary
Return False if x.__setitem__ is expected to raise; True otherwise. Return False if x is not an array API compatible object.
Warnings
As there is no standard way to check if an array is writeable without actually writing to it, this function blindly returns True for all unknown array types.
Aliases
-
scipy.differentiate.xpx._lib._at.is_writeable_array