Skip to content

Commit

Permalink
remove permutation matrix function
Browse files Browse the repository at this point in the history
  • Loading branch information
antonydellavecchia committed Nov 1, 2024
1 parent 4ebc610 commit f8a4532
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 5 additions & 1 deletion experimental/AlgebraicShifting/src/PartialShift.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ end

compound_matrix(m::MatElem, k::Int) = compound_matrix(m, uniform_hypergraph(sort(subsets(size(m, 1), k))))
compound_matrix(p::PermGroupElem, k::Int) = compound_matrix(permutation_matrix(ZZ, p), k)
compound_matrix(w::WeylGroupElem, k::Int) = compound_matrix(permutation_matrix(ZZ, w), k)

function compound_matrix(w::WeylGroupElem, k::Int)
iso = isomorphism(PermGroup, parent(w))
return compound_matrix(permutation_matrix(ZZ, iso(w)), k)
end

# this might be removed (currently is not used)
function _set_to_zero(K::SimplicialComplex, indices::Tuple{Int, Int})
Expand Down
7 changes: 0 additions & 7 deletions experimental/LieAlgebras/src/WeylGroup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -733,10 +733,3 @@ function Base.iterate(iter::WeylOrbitIterator, state::WeylIteratorNoCopyState)
(wt, _), state = it
return deepcopy(wt), state
end

################################################################################
# converting to permutation matrices

function permutation_matrix(R::Ring, w::WeylGroupElem)
permutation_matrix(R, isomorphism(PermGroup, parent(w))(w))
end

0 comments on commit f8a4532

Please sign in to comment.