Function OrbitUtils::transport_mtrx_from_init_coords(Bunch *, Matrix *)#

Function Documentation#

int OrbitUtils::transport_mtrx_from_init_coords(Bunch *bunch, Matrix *A_mtr)#

Calculates transport matrix A: x_out = A*x_in +b. A is a 7x7 matrix. The last column of A is the b vector. It returns 0 if unsuccessful or the size of the statistics otherwise. The function uses the initial coordinates attributes as x_in and the usual coordinates as x_out.