Skip to content

Commit

Permalink
transferred extra field algebra definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed May 24, 2023
1 parent 6a1130b commit 0f4b95f
Show file tree
Hide file tree
Showing 2 changed files with 11 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 = "StaticVectors"
uuid = "20fadf95-9e3d-483c-97cd-cab2760e7998"
authors = ["Michael Reed"]
version = "1.0"
version = "1.0.1"

[deps]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Expand Down
11 changes: 10 additions & 1 deletion src/StaticVectors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@

module StaticVectors

using LinearAlgebra
@inline inv(z) = Base.inv(z)
@inline /(a,b) = Base.:/(a,b)
@inline -(a,b) = Base.:-(a,b)
-(x) = Base.:-(x)
-(x::Symbol) = :(-$x)
for (OP,op) ((:∏,:*),(:∑,:+))
@eval @inline $OP(x...) = Base.$op(x...)
end

import LinearAlgebra

export TupleVector, Values, Variables, FixedVector

Expand Down

2 comments on commit 0f4b95f

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

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.1 -m "<description of version>" 0f4b95ff5f7187f5c354aba5bb94d5dfa2311c30
git push origin v1.0.1

Please sign in to comment.