1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-12-28 18:50:29 +01:00

add missing dropzeros!

This commit is contained in:
kalmarek 2019-06-04 22:47:09 +02:00
parent e4e5121a71
commit edc6d5cefa
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -81,6 +81,11 @@ end
#
###############################################################################
function SparseArrays.dropzeros!(X::GroupRingElem; trim::Bool=true)
dropzeros!(X.coeffs, trim=trim)
return X
end
LinearAlgebra.norm(X::GroupRingElem, p::Int=2) = norm(X.coeffs, p)
function _dealias(res::GroupRingElem, x::GroupRingElem, y::GroupRingElem)