Skip to content

Commit

Permalink
change matrix constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
StevellM committed Oct 5, 2023
1 parent f8b2f63 commit 3be4d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/QuadForm/Herm/Spaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function _diagonal(V::HermSpace, with_transform::Bool = true)
D, U = _gram_schmidt(g, involution(V))
diagE = append!(zeros(base_ring(V),k), diagonal(D))
diagK = map(fixed_field(V), diagE)
!with_transform && return diagK, E[;]
!with_transform && return diagK, matrix(E, 0, 0, elem_type(E)[])
B[k+1:end, :] = U*view(B, k+1:nrows(B), :)
return diagK, B
end
Expand Down
2 changes: 1 addition & 1 deletion src/QuadForm/Quad/Spaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function _diagonal(V::QuadSpace, with_transform::Bool = true)
g = B[k+1:end,:]*g*transpose(B[k+1:end,:])
D, U = _gram_schmidt(g, involution(V))
diag = append!(zeros(base_ring(V), k), diagonal(D))
!with_transform && return diag, E[;]
!with_transform && return diag, matrix(E, 0, 0, elem_type(E)[])
B[k+1:end, :] = U*view(B, k+1:nrows(B), :)
return diag, B
end
Expand Down

0 comments on commit 3be4d1f

Please sign in to comment.