JuliaMath / JuliaMath/MeasureBase.jl
Missed simplification opportunity for `productmeasure`
Open
- Dominant language
- Julia
- Stars
- 32
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
In this measure
```julia
julia> d = productmeasure(fill(Lebesgue(), 5))
ProductMeasure([Lebesgue(ℝ), Lebesgue(ℝ), Lebesgue(ℝ), Lebesgue(ℝ), Lebesgue(ℝ)])
```
we have
```julia
julia> Base.issingletontype(eltype(marginals(d)))
true
```
But this guarantees we could instead have written it as a power measure. Let's update the `powermeasure` to account for this.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.