cr.sparse.vec_centered

cr.sparse.vec_centered(x, length)[source]

Returns the central part of a vector of a specified length

Parameters
  • x (jax.numpy.ndarray) – A line vector.

  • length (int) – Length of the central part of x which will be retained.

Returns

central part of x of the specified length.

Return type

jax.numpy.ndarray