FLINT3.7.0-dev

ca_mat_diagonalization

Synopsis#include <flint/ca_mat.h>
truth_t ca_mat_diagonalization(ca_mat_t D, ca_mat_t P, const ca_mat_t A, ca_ctx_t ctx)source

Attempts to compute a diagonal matrix D and an invertible matrix P with A = P D P^{-1}. Returns T_TRUE on success, T_FALSE if A is proved not to be diagonalisable (a geometric multiplicity is smaller than the algebraic one), and T_UNKNOWN if the eigenvalues or the eigenspaces cannot be computed. The columns of P are bases of the kernels of A - \lambda I.

Cite this page

The FLINT team, “ca_mat_diagonalization (ca_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ca_mat/ca_mat_diagonalization.html (generated 2026-10-20).