Skip to content

Commit

Permalink
Update uses of vcat
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Nov 24, 2023
1 parent 94b0d03 commit ff9f7e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/GrpAb/stable_sub.jl
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ function minimal_submodules(M::ZpnGModule, ord::Int=-1)
v = Int[M.p^(valuation(S.V.snf[i], M.p)-1) for i=1:ngens(S.V)]
W = matrix_space(R, 1, ngens(M.V); cached=false)
for z = 1:length(list)
list[z] = vcat(zzModMatrix[W((mS(S.V(ZZRingElem[lift(list_sub[z][k,i])*v[i] for i=1:ngens(S.V)]))).coeff) for k=1:nrows(list_sub[z])])
list[z] = reduce(vcat, [W((mS(S.V(ZZRingElem[lift(list_sub[z][k,i])*v[i] for i=1:ngens(S.V)]))).coeff) for k=1:nrows(list_sub[z])])
end
return list

Expand Down
2 changes: 1 addition & 1 deletion src/Misc/jordan.jl
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ function simultaneous_diagonalization(L::Vector{S}; check::Bool = true) where S

# Compute transformation matrix
CE = common_eigenspaces(L, side = :left)
A = Hecke.vcat(collect(values(CE)))
A = reduce(vcat, values(CE))

# Compute diagonal forms
D = [ zero_matrix(base_ring(L[1]), nrows(L[1]), ncols(L[1])) for i = 1:length(L) ]
Expand Down
2 changes: 1 addition & 1 deletion src/NumField/Subfields.jl
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ function fixed_field(K::NfRel, A::Vector{T}; simplify::Bool = true) where {T <:
if length(ar_mat) == 0
return K, id_hom(K)
else
bigmatrix = hcat(ar_mat)
bigmatrix = reduce(hcat, ar_mat)
k, Ker = kernel(bigmatrix, side = :left)
bas = Vector{elem_type(K)}(undef, k)
for i in 1:k
Expand Down

0 comments on commit ff9f7e1

Please sign in to comment.