Skip to content

Commit

Permalink
Merge pull request #53 from kalmarek/update/StarAlgebras-0.2
Browse files Browse the repository at this point in the history
update StarAlgebras to v0.2.0
  • Loading branch information
Marek Kaluba authored Mar 1, 2023
2 parents 1e33791 + 1261a43 commit 9e87306
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SymbolicWedderburn"
uuid = "858aa9a9-4c7c-4c62-b466-2421203962a2"
authors = ["Marek Kaluba <[email protected]>", "tweisser <[email protected]>"]
version = "0.3.2"
version = "0.3.3"

[deps]
Cyclotomics = "da8f5974-afbb-4dc8-91d8-516d5257c83b"
Expand All @@ -17,7 +17,7 @@ Cyclotomics = "0.3"
GroupsCore = "0.4"
PermutationGroups = "0.3.1"
Primes = "0.4, 0.5"
StarAlgebras = "0.1.5"
StarAlgebras = "0.2"
julia = "1.6"

[extras]
Expand Down
17 changes: 15 additions & 2 deletions src/minimal_projections.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
function _group_algebra(G::Group)
@assert isfinite(G)
b = StarAlgebras.Basis{UInt16}(vec(collect(G)))
RG = if order(Int, G) <= (typemax(UInt16) >> 1) # 32767
StarAlgebra(G, b, (length(b), length(b)); precompute = true)
# cache is about ~ 1Gb
else
StarAlgebra(G, b)
end
return RG
end

Base.parent(A::StarAlgebra{<:Group}) = A.object
StarAlgebras.star(g::GroupElement) = inv(g)

function StarAlgebras.AlgebraElement(
χ::AbstractClassFunction,
Expand Down Expand Up @@ -98,7 +111,7 @@ function minimal_rank_projection(χ::Character, RG::StarAlgebra{<:Group};
subgroups=CyclicSubgroups(parent(RG), min_order=2),
iters=3
)
degree(χ) == 1 && return one(RG, Rational{Int}), true
degree(χ) == 1 && return one(Rational{Int}, RG), true

for H in subgroups
µ = _small_idem(RG, H)
Expand All @@ -115,7 +128,7 @@ function minimal_rank_projection(χ::Character, RG::StarAlgebra{<:Group};
push!(_id, deepcopy(subgroups))
end
@debug "Could not find minimal projection for "
return one(RG, Rational{Int}), false
return one(Rational{Int}, RG), false
end

function minimal_projection_system(
Expand Down
12 changes: 0 additions & 12 deletions src/sa_basis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,6 @@ function _constituents_decomposition(ψ::Character, tbl::CharacterTable)
return irr[present_irreps], multiplicities[present_irreps]
end

function _group_algebra(G::Group)
@assert isfinite(G)
b = StarAlgebras.Basis{UInt16}(vec(collect(G)))
RG = if order(Int, G) <= (typemax(UInt16)>>2)
StarAlgebra(G, b, (length(b), length(b)), precompute=true)
# cache is about ~ 1Gb
else
StarAlgebra(G, b)
end
return RG
end

function _symmetry_adapted_basis(
T::Type,
irr::AbstractVector{<:Character},
Expand Down

2 comments on commit 9e87306

@kalmarek
Copy link
Owner

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/78775

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.3.3 -m "<description of version>" 9e8730693509bc3a1da1b95d5a1118064e6faa19
git push origin v0.3.3

Please sign in to comment.