Skip to content

Commit

Permalink
Update ConfidenceRegions.jl
Browse files Browse the repository at this point in the history
Allow for 0-dim SubArray in Reduction
  • Loading branch information
RafaelArutjunjan committed Oct 26, 2022
1 parent 4397b22 commit 385a1c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ConfidenceRegions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ end
# Reduction(X::AbstractVector{<:SVector{Len,T}}) where Len where T = reinterpret(T, X)
Reduction(X::AbstractVector{<:AbstractVector}) = reduce(vcat, X)
Reduction(X::AbstractVector{<:Number}) = X
Reduction(X::AbstractVector{<:SubArray{<:Number, 0}}) = [@inbounds X[i][1] for i in 1:length(X)]


# h(θ) ∈ Dataspace
Expand Down

0 comments on commit 385a1c8

Please sign in to comment.