mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-27 01:10:28 +01:00
add Nemo.isone(::GroupElem)
This commit is contained in:
parent
84813fedc4
commit
12c5c47ca8
@ -20,6 +20,8 @@ function (chi::PermCharacter)(g::Nemo.perm)
|
|||||||
return Int(Nemo.MN1inner(R, p, 1, Nemo._charvalsTable))
|
return Int(Nemo.MN1inner(R, p, 1, Nemo._charvalsTable))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Nemo.isone(p::GroupElem) = p == parent(p)()
|
||||||
|
|
||||||
## NOTE: this works only for Z/2!!!!
|
## NOTE: this works only for Z/2!!!!
|
||||||
function (chi::DirectProdCharacter)(g::DirectProductGroupElem)
|
function (chi::DirectProdCharacter)(g::DirectProductGroupElem)
|
||||||
return reduce(*, 1, ((-1)^isone(g.elts[j]) for j in 1:chi.i))
|
return reduce(*, 1, ((-1)^isone(g.elts[j]) for j in 1:chi.i))
|
||||||
|
Loading…
Reference in New Issue
Block a user