Skip to content

Polynomials/matrices/vectors mod n, random generation: add uniform random? #2424

@vneiger

Description

@vneiger

Currently, most objects (polynomials, vectors, matrices, ...) composed of nmod or fmpz_mod coefficients offer some functions for filling coefficients with random entries that have a special property (typically calling n_randtest, with the probability of special values or sparsity increased, see https://flintlib.org/doc/ulong_extras.html#c.n_randtest ).

Would there be any objections against adding functions for filling objects in a dense way and with uniformly random coefficients? I often such "uniformly random generation" e.g. for benchmarks or in the writing of randomized algorithms, and was wondering whether its absence from FLINT is deliberate.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions