qimpy.transport.geometry.spline_length

spline_length(spline, n_points=64)

Compute cubic spline lengths, batched over any preceding dimensions. The shape of spline should end in (4, d), where d is the dimension of space.

Parameters:
  • spline (ndarray) –

  • n_points (int) –

Return type:

ndarray