From cd779703da01bf2f2fb6b0b6fca43d65df8539b0 Mon Sep 17 00:00:00 2001 From: Blanca Luo Date: Wed, 13 Nov 2024 21:27:01 -0500 Subject: [PATCH] Renamed `Pow` function for clarity --- src/types.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.jl b/src/types.jl index 8a8c7361..898259f4 100644 --- a/src/types.jl +++ b/src/types.jl @@ -509,7 +509,7 @@ end @inline denominators(x) = isdiv(x) ? numerators(x.den) : Any[1] -function (::Type{<:Pow{T}})(a, b; metadata=NO_METADATA) where {T} +function Pow{T}(a, b; metadata=NO_METADATA) where {T} _iszero(b) && return 1 _isone(b) && return a Pow{T}(; base=a, exp=b, arguments=[], metadata)