- qspec.boost ( x , v , axis = -1 )[source]
-
- Parameters:
-
- xarray_like
The 4-vector x in the current rest frame (arb. units).
- varray_like
The velocity 3-vector (m/s).
- axisNone
The axis along which the vector components are aligned.
- Returns:
-
- outarray_like
The 4-vector x in the coordinate system moving with velocity v relative to the current rest frame ([x]).
- Raises:
-
- ValueError
x and v must have 4 and 3 components along the specified axis, respectively. The shapes of x and v must be compatible.