FLINT3.7.0-dev

bool_mat_randtest_nilpotent

Synopsis#include <flint/bool_mat.h>
void bool_mat_randtest_nilpotent(bool_mat_t mat, flint_rand_t state)source

Sets the square, nonempty matrix mat to a random nilpotent matrix: a random strictly lower triangular matrix with rows and columns permuted by a common random permutation, that is, the adjacency matrix of a random directed acyclic graph. Throws an exception if mat is not square or is empty.

Cite this page

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