Open fingolfin opened 1 year ago
@lgoettgens with the move of stuff from Hecke to here, we are now at 122 reported cases of piracy :-(. Quit a lot of that hints at things which really should be moved to AbstractAlgebra. To pick a random example:
function matrix(A::Matrix{T}) where {T<:RingElem}
r, c = size(A)
(r < 0 || c < 0) && error("Array must be non-empty")
m = matrix(parent(A[1, 1]), A)
return m
end
function matrix(A::Vector{T}) where {T<:RingElem}
return matrix(reshape(A, length(A), 1))
end
export scalar_matrix
function scalar_matrix(R::Ring, n::Int, a::RingElement)
b = R(a)
z = zero_matrix(R, n, n)
for i in 1:n
z[i, i] = b
end
return z
end
Any chance you might be interested to look into that? 😜
@lgoettgens with the move of stuff from Hecke to here, we are now at 122 reported cases of piracy :-(.
With #1530, there will be even more.
Any chance you might be interested to look into that? 😜
I can totally do that, but I cannot say right now if next week or the week after. Having #1530 until then would be great :)
Enabling the type piracy report in
test/Aqua.jl
currently reports this (in Julia 1.10.3, for commit 50e68d81afa8b5ceb332358d36a7d156d31cfb80):