diff --git a/GroupAlgebras.jl b/GroupAlgebras.jl index 863cb3d..4d0a52c 100644 --- a/GroupAlgebras.jl +++ b/GroupAlgebras.jl @@ -112,6 +112,7 @@ end length(X::GroupAlgebraElement) = length(X.coefficients) size(X::GroupAlgebraElement) = size(X.coefficients) norm(X::GroupAlgebraElement, p=2) = norm(X.coefficients, p) +ɛ(X::GroupAlgebraElement) = sum(X.coefficients) rationalize{T<:Integer, S<:Number}(::Type{T}, X::GroupAlgebraElement{S}; tol=eps(S)) =