{ } Raw JSON

bundles / scipy 1.17.1 / scipy / spatial / transform / _rigid_transform / select_backend

function

scipy.spatial.transform._rigid_transform:select_backend

source: /scipy/spatial/transform/_rigid_transform.py :31

Signature

def   select_backend ( xp : ModuleType cython_compatible : bool )

Summary

Select the backend for the given array library.

Extended Summary

We need this selection function because the Cython backend for numpy does not support quaternions of arbitrary dimensions. We therefore only use the Array API backend for numpy if we are dealing with rotations of more than one leading dimension.

Aliases

  • scipy.spatial.transform._rigid_transform.select_backend