Skip to content

Commit

Permalink
transferred countvalues, evenvalues
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Jun 17, 2023
1 parent 0f4b95f commit ab86fb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "StaticVectors"
uuid = "20fadf95-9e3d-483c-97cd-cab2760e7998"
authors = ["Michael Reed"]
version = "1.0.1"
version = "1.0.2"

[deps]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Expand Down
3 changes: 3 additions & 0 deletions src/StaticVectors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,7 @@ include("linalg.jl")

const SVector,MVector,SizedVector = Values,Variables,FixedVector

@pure countvalues(a::Int,b::Int) = Values{max(0,b-a+1),Int}(a:b...)
@pure evenvalues(a::Int,b::Int) = Values{((b-a)÷2)+1,Int}(a:2:b...)

end # module

2 comments on commit ab86fb2

@chakravala
Copy link
Owner Author

Choose a reason for hiding this comment

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

@JuliaRegistrator register()

@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/85777

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 v1.0.2 -m "<description of version>" ab86fb284d2c0b22e5038a2e852831e17e9cb4be
git push origin v1.0.2

Please sign in to comment.