bundles / scipy 1.17.1 / scipy / spatial / transform / _rotation / Rotation / __setitem__
function
scipy.spatial.transform._rotation:Rotation.__setitem__
Signature
def __setitem__ ( self , indexer : int | slice | EllipsisType | None , value : Rotation ) Summary
Set rotation(s) at given index(es) from object.
Parameters
indexer: index, slice, or index arraySpecifies which rotation(s) to replace. A single indexer must be specified, i.e. as if indexing a 1 dimensional array or list.
value: `Rotation` instanceThe rotations to set.
Raises
: TypeError if the instance was created as a single rotation.
Notes
Array API Standard Support
__setitem__ has experimental support for Python Array API Standard compatible backends in addition to NumPy. Please consider testing these features by setting an environment variable SCIPY_ARRAY_API=1 and providing CuPy, PyTorch, JAX, or Dask arrays as array arguments. The following combinations of backend and device (or other capability) are supported.
==================== ==================== ==================== Library CPU GPU ==================== ==================== ==================== NumPy ✅ n/a CuPy n/a ✅ PyTorch ✅ ✅ JAX ⚠️ no JIT ⚠️ no JIT Dask ⛔ n/a ==================== ==================== ====================
See
dev-arrayapifor more information.
Aliases
-
scipy.spatial.transform.Rotation.__setitem__