Skip to content

Commit

Permalink
Merge pull request #39 from JuliaSIMD/brenhinkeller-patch-1
Browse files Browse the repository at this point in the history
Extend `vsum` workaround to additional collection types
  • Loading branch information
brenhinkeller committed Jun 19, 2024
2 parents 6626b0e + d964063 commit 5eb5ef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "VectorizedStatistics"
uuid = "3b853605-1c98-4422-8364-4bd93ee0529e"
authors = ["C. Brenhin Keller", "Chris Elrod"]
version = "0.5.8"
version = "0.5.9"

[deps]
LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890"
Expand Down
3 changes: 2 additions & 1 deletion src/vsum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ julia> vsum(A, dims=2)
7
```
"""
vsum(A::StridedArray; dim=:, dims=:, multithreaded=False()) = _vsum(A, dim, dims, multithreaded)
vsum(A::AbstractArray{N,T}; dim=:, dims=:, multithreaded=False()) where {N,T}= _vsum(A, dim, dims, multithreaded)
vsum(A::NTuple{N,T}; dim=:, dims=:, multithreaded=False()) where {N,T} = _vsum(A, dim, dims, multithreaded)
_vsum(A, ::Colon, ::Colon, multithreaded) = _vsum(A, :, multithreaded)
_vsum(A, ::Colon, region, multithreaded) = _vsum(A, region, multithreaded)
_vsum(A, region, ::Colon, multithreaded) = reducedims(_vsum(A, region, multithreaded), region)
Expand Down

2 comments on commit 5eb5ef3

@brenhinkeller
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/109383

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.9 -m "<description of version>" 5eb5ef3026b9ad16765fd5c8b9fcfdf20aac9fc3
git push origin v0.5.9

Please sign in to comment.