From 46babf0fb297faa8446f93840bc8645b07a6a31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Fri, 25 Oct 2024 11:45:53 +0200 Subject: [PATCH] fix --- src/flint/FlintTypes.jl | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/flint/FlintTypes.jl b/src/flint/FlintTypes.jl index 5f9887c59..9ca8d5d2e 100644 --- a/src/flint/FlintTypes.jl +++ b/src/flint/FlintTypes.jl @@ -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] @@ -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] @@ -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]