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

add missing end

This commit is contained in:
kalmar 2017-05-16 18:49:40 +02:00
parent b51eb71d56
commit bb28b1bc54

View File

@ -158,6 +158,7 @@ function scalar_multiplication{T<:Number, S<:Number}(a::T,
X::GroupRingElem{S}) X::GroupRingElem{S})
promote_type(T,S) == S || warn("Scalar and coeffs are in different rings! Promoting result to $(promote_type(T,S))") promote_type(T,S) == S || warn("Scalar and coeffs are in different rings! Promoting result to $(promote_type(T,S))")
return GroupRingElem(a*X.coeffs, parent(X)) return GroupRingElem(a*X.coeffs, parent(X))
end
end end
(*){T<:Number}(a::T,X::GroupRingElem) = scalar_multiplication(a, X) (*){T<:Number}(a::T,X::GroupRingElem) = scalar_multiplication(a, X)
@ -280,3 +281,5 @@ function complete(X::GroupRingElem)
complete(parent(X)) complete(parent(X))
return X return X
end end
end # of module GroupRings