JuliaMath / JuliaMath/MeasureBase.jl

Missed simplification opportunity for `productmeasure`

Open
#133 8 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.