Skip to content

awkward that you overwrite existing Polynomials.roots(); prevents comparison #23

Open
@ahbarnett

Description

@ahbarnett

Thanks for this exciting package, which I am benchmarking against AMRVW.jl, Polynomials.jl, PolynomialRoots.jl, and my own companion matrix eigval implementation.

However, because your package chooses to redefine the roots() method from the Polynomials module, one cannot actually run benchmarks, unless they are done as in your README.md where you can only test Polynomials.roots() before you load in FPR. I want to be able to load both modules, then call one or the other roots() function but cannot because either using or import on your pkg appears to redefine Polynomials.roots(). I think this is not good behavior; FPR should keep its own namespace and not change another pkg.

The offending line is

Polynomials.roots(p::Union{Polynomial{Float64},Polynomial{Complex{Float64}}}) = rootsFastPolynomialRoots(coeffs(p))

Is there something I'm missing here (relatively new to Julia)? Thanks, Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions