mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-10-19 01:00:36 +02:00
use sign(::perm)
This commit is contained in:
parent
b8d54134f5
commit
9d8f001363
@ -10,14 +10,14 @@ function chars(G::PermutationGroup)
|
|||||||
|
|
||||||
χ_id(σ::Nemo.perm) = 1
|
χ_id(σ::Nemo.perm) = 1
|
||||||
|
|
||||||
χ_sgn(σ::Nemo.perm) = (-1)^parity(σ)
|
χ_sgn(σ::Nemo.perm) = sign(σ)
|
||||||
|
|
||||||
function χ_reg(σ::Nemo.perm)
|
function χ_reg(σ::Nemo.perm)
|
||||||
fixed_points = countnz([(x == y? 1 : 0) for (x,y) in enumerate(σ.d)])
|
fixed_points = countnz([(x == y? 1 : 0) for (x,y) in enumerate(σ.d)])
|
||||||
return fixed_points - 1
|
return fixed_points - 1
|
||||||
end
|
end
|
||||||
|
|
||||||
χ_regsgn(σ::Nemo.perm) = (-1)^parity(σ)*χ_reg(σ)
|
χ_regsgn(σ::Nemo.perm) = sign(σ)*χ_reg(σ)
|
||||||
|
|
||||||
function χ_regviaS3(σ::Nemo.perm)
|
function χ_regviaS3(σ::Nemo.perm)
|
||||||
@assert parent(σ).n == 4
|
@assert parent(σ).n == 4
|
||||||
|
Loading…
Reference in New Issue
Block a user