Skip to content

Commit

Permalink
extended LinearAlgebra.UniformScaling for DiagonalForm
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Oct 6, 2019
1 parent 1f1f5b1 commit 2826467
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/multivectors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ adjoint(b::MultiGrade{V,G}) where {V,G} = MultiGrade{dual(V),G}(adjoint.(terms(b
## conversions

@inline (V::Signature)(s::UniformScaling{T}) where T = SBlade{V}(T<:Bool ? (s.λ ? one(Int) : -(one(Int))) : s.λ,getbasis(V,(one(T)<<(ndims(V)-diffvars(V)))-1))
@inline (V::DiagonalForm)(s::UniformScaling{T}) where T = SBlade{V}(T<:Bool ? (s.λ ? one(Int) : -(one(Int))) : s.λ,getbasis(V,(one(T)<<(ndims(V)-diffvars(V)))-1))

@pure function (W::Signature)(b::Basis{V}) where V
V==W && (return b)
Expand Down

2 comments on commit 2826467

@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 updated: JuliaRegistries/General/4124

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 Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.1 -m "<description of version>" 28264675846e7eb9ec8ab00ad8a808351e2a813c
git push origin v0.3.1

Please sign in to comment.