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

Mimic constructor from PDMats.jl so that PSDMat(<:Matrix{<:Integer}) does not throw #34

Merged
merged 3 commits into from
Oct 23, 2023

Conversation

vandenman
Copy link
Contributor

Per this discourse post, the following throws:

PSDMat([0 0; 0 1])
ERROR: MethodError: no method matching PSDMat{Int64, Matrix{Int64}}(::Int64, ::Matrix{Int64}, ::CholeskyPivoted{Float64, Matrix{Float64}, Vector{Int64}})

It also used to throw in PDMats.jl, but that was fixed in JuliaStats/PDMats.jl#117. This PR copies the changes in that PR and adds a small test.

Technically this is probably a breaking change, but PDMats.jl merged that PR in a patch release so ¯\(ツ)

@oxinabox
Copy link
Member

oxinabox commented Oct 17, 2023

Thanks, sorry this slipped under the radar.

Can you rebase this, and then it should be good to merge

This isn't breaking. Per https://github.com/SciML/ColPrac#changes-that-are-not-considered-breaking

Exceptions may be replaced with non-error behavior.

@vandenman vandenman force-pushed the mimic_constructor_PDMats branch from dcdce04 to 4fee327 Compare October 20, 2023 09:37
@oxinabox oxinabox merged commit 4fc4a7e into invenia:master Oct 23, 2023
5 checks passed
@vandenman vandenman deleted the mimic_constructor_PDMats branch October 23, 2023 20:03
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