Skip to content

Commit e877f65

Browse files
committed
fixed dispatch bypass cases
1 parent a4e7427 commit e877f65

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AbstractTensors"
22
uuid = "a8e43f4a-99b7-5565-8bf1-0165161caaea"
33
authors = ["Michael Reed"]
4-
version = "0.8.10"
4+
version = "0.8.11"
55

66
[deps]
77
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

src/AbstractTensors.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,8 @@ for op ∈ (:abs,:abs2,:cos,:sin,:tan,:cot,:sec,:csc,:asec,:acsc,:sech,:csch,:as
400400
end
401401
@inline Base.log(t::Real,g::TensorAlgebra) = Base.log(t)
402402
@inline Base.log(t::Complex,g::TensorAlgebra) = Base.log(t)
403+
@inline log_metric(t::Real,g) = Base.log(t)
404+
@inline log_metric(t::Complex,g) = Base.log(t)
403405
for (op,logm,field) ((:,:(Base.log),false),(:wedgedot_metric,:log_metric,true)); args = field ? (:g,) : ()
404406
@eval begin
405407
@inline Base.cos(t::T,$(args...)) where T<:TensorAlgebra{V} where V = Base.cosh($op(V(I),t,$(args...)),$(args...))

0 commit comments

Comments
 (0)