Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Oct 25, 2024
1 parent d9943c1 commit 46babf0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/flint/FlintTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5573,8 +5573,7 @@ mutable struct FqMatrix <: MatElem{FqFieldElem}
end

function FqMatrix(arr::AbstractMatrix{<:Union{FqFieldElem,ZZRingElem,Integer}}, ctx::FqField)
r = nrows(arr)
c = ncols(arr)
(r, c) = size(arr)
z = FqMatrix(r, c, ctx)
for i = 1:r, j = 1:c
@inbounds z[i, j] = arr[i, j]
Expand Down Expand Up @@ -5677,8 +5676,7 @@ mutable struct FqPolyRepMatrix <: MatElem{FqPolyRepFieldElem}
end

function FqPolyRepMatrix(arr::AbstractMatrix{<:Union{FqPolyRepFieldElem,ZZRingElem,Integer}}, ctx::FqPolyRepField)
r = nrows(arr)
c = ncols(arr)
(r, c) = size(arr)
z = FqPolyRepMatrix(r, c, ctx)
for i = 1:r, j = 1:c
@inbounds z[i, j] = arr[i, j]
Expand Down Expand Up @@ -5756,8 +5754,7 @@ mutable struct fqPolyRepMatrix <: MatElem{fqPolyRepFieldElem}
end

function fqPolyRepMatrix(arr::AbstractMatrix{<:Union{fqPolyRepFieldElem,ZZRingElem,Integer}}, ctx::fqPolyRepField)
r = nrows(arr)
c = ncols(arr)
(r, c) = size(arr)
z = fqPolyRepMatrix(r, c, ctx)
for i = 1:r, j = 1:c
@inbounds z[i, j] = arr[i, j]
Expand Down

0 comments on commit 46babf0

Please sign in to comment.