class_docstr: Spherical Linear Interpolation of Rotations.
class_docstr_tok: ["Spherical","Linear","Interpolation","of","Rotations","."]
docstr: Interpolate rotations.
docstr_tok: ["Interpolate","rotations","."]
code: def __call__(self, times: jax.Array):
      """Interpolate rotations."""
      compute_times = jnp.asarray(times, dtype=self.times.dtype)
      if compute_times.ndim > 1:
          raise ValueError("`times` must be at most 1-dimensional.")
      single_time = compute_times.ndim == 0
      compute_times = jnp.atleast_1d(compute_times)
      ind = jnp.maximum(
          jnp.searchsorted(self.times, compute_times) - 1, 0
      )
      alpha = (compute_times - self.times[ind]) / self.timedelta[ind]
      result = self.rotations[ind] * Rotation.from_rotvec(
          self.rotvecs[ind] * alpha[:, None]
      )
      if single_time:
          return result[0]
      return result
  
imports: from __future__ import annotations
  import functools
  import re
  import typing
  import scipy.spatial.transform
  import jax
  import jax.numpy
  from jax._src.numpy.util import _wraps
label_desc: Use image node_id 2 for calling the Slerp obj's underlying member method code with example usage: obj.__call__(times) and returns: result, result