Le dim. 21 juin 2026 à 22:32, Albin Ahlbäck <
albin....@gmail.com> a écrit :
>
> Hi Grégory,
>
> I will read this as: "Is it expected that `fmpz_mat_snf_diagonal' does
> not check that the matrix is indeed diagonal?"
Right!
> Usually we do not check things if an argument is called (varies a bit
> throughout FLINT, but in general this is a good strategy if it can be
> easily checked beforehand). However, the docstring could reflect this
> better.
>
I also did that. And about performance, FLINT is intended to be highly
efficient and it is, I also think that here it is up to the user to
know what it is doing. Checking everything would be counterproductive.
Thanks for your responses.
Greg