2929
3030# ToDo: Make rand return static arrays for statically-sized power measures.
3131
32- function _cartidxs (axs:: Tuple{Vararg{<: AbstractUnitRange,N}} ) where {N}
32+ function _cartidxs (axs:: Tuple{Vararg{AbstractUnitRange,N}} ) where {N}
3333 CartesianIndices (map (_dynamic, axs))
3434end
3535
@@ -49,16 +49,16 @@ function Base.rand(rng::AbstractRNG, ::Type{T}, d::PowerMeasure) where {T}
4949 end
5050end
5151
52- @inline _pm_axes (sz:: Tuple{Vararg{<: IntegerLike,N}} ) where {N} = map (one_to, sz)
53- @inline _pm_axes (axs:: Tuple{Vararg{<: AbstractUnitRange,N}} ) where {N} = axs
52+ @inline _pm_axes (sz:: Tuple{Vararg{IntegerLike,N}} ) where {N} = map (one_to, sz)
53+ @inline _pm_axes (axs:: Tuple{Vararg{AbstractUnitRange,N}} ) where {N} = axs
5454
55- @inline function powermeasure (x:: T , sz:: Tuple{Vararg{<: Any,N}} ) where {T,N}
55+ @inline function powermeasure (x:: T , sz:: Tuple{Vararg{Any,N}} ) where {T,N}
5656 PowerMeasure (x, _pm_axes (sz))
5757end
5858
5959marginals (d:: PowerMeasure ) = fill_with (d. parent, d. axes)
6060
61- function Base.:^ (μ:: AbstractMeasure , dims:: Tuple{Vararg{<: AbstractArray,N}} ) where {N}
61+ function Base.:^ (μ:: AbstractMeasure , dims:: Tuple{Vararg{AbstractArray,N}} ) where {N}
6262 powermeasure (μ, dims)
6363end
6464
0 commit comments