FLINT3.7.0-dev

sp2gz_decompose

Synopsis#include <flint/acb_theta.h>
fmpz_mat_struct * sp2gz_decompose(slong * nb, const fmpz_mat_t mat)source

Returns a newly allocated vector of symplectic matrices whose product from left to right is mat, and stores its length in *nb. Each matrix is block-diagonal, trigonal, J, an embedded J from a lower dimension, or an embedded matrix from dimension 1. The caller frees the result by calling fmpz_mat_clear on each entry and then flint_free.

Cite this page

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