fix powering on julia-1.0

This commit is contained in:
kalmarek 2018-10-24 20:29:57 +02:00
parent 3001d2e6f9
commit 69419d9294
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@ using LinearAlgebra
import LinearAlgebra: norm
using Markdown
import Base: convert, show, hash, ==, +, -, *, //, /, length, getindex, setindex!, eltype, one, zero
import Base: convert, show, hash, ==, +, -, *, ^, //, /, length, getindex, setindex!, eltype, one, zero
###############################################################################
#
@ -302,6 +302,8 @@ end
(/)(X::GroupRingElem, a) = 1/a*X
(//)(X::GroupRingElem, a::Union{Integer, Rational}) = 1//a*X
(^)(X::GroupRingElem, n::Integer) = Base.power_by_squaring(X, n)
###############################################################################
#
# Binary operators