drift6#

georges.manzoni.maps.drift6(b1: ndarray, b2: ndarray, length: float)[source]#

Note

Performance tests on MBP i9 show that the explicit loop is faster, both at compile-time and at runtime

than the nb broadcast variant.

Parameters:
  • b1 – a numpy array containing all the particles

  • b2 – explicit destination for the result

  • length – the drift length (in meters)

Returns:

the destination (result) array