mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-09-13 08:35:42 +02:00
fix powering on julia-1.0
This commit is contained in:
parent
3001d2e6f9
commit
69419d9294
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user