Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suppressed Integer annotation on Factorization; fixed bug in calls of… #127

Merged
merged 3 commits into from
Jul 3, 2023

Conversation

jmichel7
Copy link
Contributor

I suppressed the annotations <:Integer on the T of Factorization, allowing Primes.Factorization to be used to hold factorizations of other than integer (my goal is for polynomials). I added tests in runtest.jl where T is Symbol.
Along the way, I fixed bugs in the calls to searchsortedfirst. In the call searchsortedfirst(f.pe, p, by=first) contrary to intuition, the function by is applied to p so the proper second argument should be a pair. This does not show for p integer since then first(p)==p but it shows for other types. The fix is to give a pair:
searchsortedfirst(f.pe, p=>0, by=first)

@oscardssmith
Copy link
Member

Sorry for forgetting about this. Merging once CI passes.

@oscardssmith oscardssmith merged commit a26041e into JuliaMath:master Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants