Closed mattsignorelli closed 6 months ago
Solution is to define your own function function Base.literal_pow(::typeof(^), a::A, b::Val{p}) where p
where A
is the appropriate TPSA type.
@DavidSagan thanks! I'm going to add this to GTPSA too because it is likely faster.
fixed with #3b2c62d
For some reason, when writing (something)^(negative_number), Julia does not just call
^(something, negative_number)
. Instead it callsinv(something)^(-1*negative_number)
. This definition does not agree with FPP. For example, for a TPSAMapm
,inv(m)^3 != inv(m^3)
. In factinv(m)^3
is very problematic, whereasinv(m^3)
is not.This is only a problem for TPSAMaps