Skip to content

Commit 6201163

Browse files
committed
Int:s or Rational:s as exponents
1 parent fca32a8 commit 6201163

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ricci.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ struct Mult end
9292

9393
struct Power <: Tensor
9494
base::Value
95-
exponent::Int
95+
exponent::Union{Int,Rational{Int}}
9696
end
9797

9898
Base.hash(op::Power, h::UInt) = hash(op.exponent, hash(op.base, hash(Power, h)))

0 commit comments

Comments
 (0)