:mod:`ocelot.cpbd.r_matrix` =========================== .. py:module:: ocelot.cpbd.r_matrix Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: ocelot.cpbd.r_matrix.rot_mtx ocelot.cpbd.r_matrix.uni_matrix ocelot.cpbd.r_matrix.create_r_matrix .. data:: __author__ :annotation: = Sergey Tomin .. data:: logger .. function:: rot_mtx(angle) .. function:: uni_matrix(z, k1, hx, sum_tilts=0.0, energy=0.0) universal matrix. The function creates R-matrix from given parameters. r = element.l/element.angle +K - focusing lens, -K - defoc :param z: element length [m] :param k1: quadrupole strength [1/m**2] :param hx: the curvature (1/r) of the element [1/m] :param sum_tilts: rotation relative to longitudinal axis [rad] :param energy: the beam energy [GeV] :return: R-matrix [6, 6] .. function:: create_r_matrix(element)