Class MatrixOperations#

Class Documentation#

class MatrixOperations#

The collection of the static methods for matrices.

Public Static Functions

static int invert(double **a, int n)#

Inverts the 2D array as a matrix.

static int invert(Matrix *matrix)#

Inversts the matrix in place.

static int mult(PhaseVector *v, Matrix *mtrx, PhaseVector *v_res)#

Multiplies a vector with the transposed matrix.

static int mult(Matrix *mtrx, PhaseVector *v, PhaseVector *v_res)#

Multiplies a vector with the matrix.

static int det(Matrix *mtrx_in, double &det)#

Calculates determinant of the matrix.

static void track(Bunch *bunch, Matrix *mtrx)#

Tracks the bunch through the transport matrix. The matrix should be 6x6 or 7x7.