FLINT3.7.0-dev

fmpz_mat_randsimdioph

Synopsis#include <flint/fmpz_mat.h>
void fmpz_mat_randsimdioph(fmpz_mat_t mat, flint_rand_t state, flint_bitcnt_t bits, flint_bitcnt_t bits2)source

Sets the square matrix mat to a random simultaneous diophantine matrix: the first row is 2^{\mathit{bits2}} followed by random signed integers of bits bits, and the other rows are 2^{\mathit{bits}} times the corresponding rows of the identity matrix. Throws if mat is not square.

Cite this page

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