From 83db3820b4d81c6b360e10f314f4e55300bc8ebe Mon Sep 17 00:00:00 2001 From: Brandon Flores Date: Wed, 18 Sep 2024 19:37:00 -0500 Subject: [PATCH] Reimplemented `Base.literal_pow(::typeof(^), ::KVector{1}, ::Val{2})` in terms of `scalar_product` --- src/math/exponential.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/exponential.jl b/src/math/exponential.jl index 0890bfd..4c261c7 100644 --- a/src/math/exponential.jl +++ b/src/math/exponential.jl @@ -74,7 +74,7 @@ end =# @inline function Base.literal_pow(::typeof(^), x::KVector{1,Q}, ::Val{2}) where Q - return KVector{0,Q}(x * x) + return KVector{0,Q}(scalar_product(x, x)) end # TODO: In 3 or fewer dimensions, all k-vectors are k-blades, so promote to KVector{0}