Skip to content

FactorsInt in library #2087

@hulpke

Description

@hulpke

This is prompted by a forum question which claimed that AbelianInvariantscan be held back by using FactorsInt instead of Factors.

[BTW: I have not found where AbelianInvariants calls FactorsInt, only calls to Factors, but that is not a disproof.]

There are about 2 dozen places in the library in which FactorsInt is called. This being a global function, it cannot be overridden by a package.

While there might be borderline cases that really need the Rho factorization, it seems to me that the main difference is a minor speedup in that FactorsInt does not need to construct the default ring and redispatch (as Factors(n) would), but that could be resolved by another method installation for condition IsInt.

Is this really time critical? Is there any reason to not replace the FactorsInt calls in the library (short of the factorization routine) with Factors? (I can do so)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions