feynlag.vacuum.diagonalize.diagonalize_takagi

feynlag.vacuum.diagonalize.diagonalize_takagi(M, old_fields=None, new_fields=None, method='auto', dps=50)[source]

Takagi factorization of a (real) symmetric Majorana mass matrix.

Returns (U, D) with M = U D Uᵀ and D diagonal non-negative: a real orthogonal diagonalization with factors of i absorbing negative eigenvalues (the standard Majorana phase convention).

Parameters:
  • method – "symbolic" diagonalizes exactly through SymPy’s Matrix.diagonalize (eigenvalue order as SymPy returns it). "numeric" uses mpmath’s symmetric eigensolver at dps digits and orders the columns by increasing mass; it needs a real matrix without free symbols. "auto" (default) is numeric for a numeric matrix larger than 2×2 and symbolic otherwise — the exact route stalls on a generic N > 2 matrix (its characteristic polynomial has no usable closed-form roots; a generic 5×5 seesaw does not finish), while the numeric one is instant. Numerically, an eigenvalue below 10^-dps of the largest is an exact zero mode (D = 0, no phase).

  • dps – working precision of the numeric route. It must be high: a seesaw spectrum spans ~14 orders of magnitude, so double precision would lose the light states entirely.

If old_fields/new_fields are given, also returns the corresponding unitary Rotation (new = U† old) as third element.