Skip to content

Conversation

@tpapp
Copy link
Contributor

@tpapp tpapp commented Jan 4, 2026

Tested with StaticArrays.SVector.

Incidental: removed unneeded outer constructor.

@codecov-commenter
Copy link

codecov-commenter commented Jan 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.36%. Comparing base (7f59245) to head (3b6e75e).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2023   +/-   ##
=======================================
  Coverage   86.36%   86.36%           
=======================================
  Files         146      146           
  Lines        8789     8789           
=======================================
  Hits         7591     7591           
  Misses       1198     1198           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

α0::T

function DirichletMultinomial{T}(n::Integer, α::Vector{T}) where T
function DirichletMultinomial(n::Integer, α::V) where {T <: Real, V <: AbstractVector{T}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt it matters in practice but technically removing this constructor DirichletMultinomial{T} is breaking... Maybe a search theough the JuliaHub package index can confirm that it's not used in any publix packages at least?

Maybe the safer (better?) alternative is to just keep this particular constructor for Vector{T} (maybe with a comment that it should be removed in a breaking release).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, there is code out there using it (probably just mindlessly copying a bad API, but nevertheless), so I will keep it.

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.

3 participants