Skip to content

Commit

Permalink
fixed a log dispatch issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Nov 27, 2024
1 parent a6badb9 commit 86a10d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Grassmann"
uuid = "4df31cd9-4c27-5bea-88d0-e6a7146666d8"
authors = ["Michael Reed"]
version = "0.8.25"
version = "0.8.26"

[deps]
AbstractTensors = "a8e43f4a-99b7-5565-8bf1-0165161caaea"
Expand Down
5 changes: 5 additions & 0 deletions src/forms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ compound(m::TensorOperator,g::Integer) = TensorOperator(compound(value(m),g))
getindex(t::TensorOperator,i::Int,j::Int) = value(value(t.v)[j])[i]
getindex(t::TensorOperator,i::Int) = value(t.v)[i]
LinearAlgebra.tr(m::Endomorphism) = tr(value(m))
LinearAlgebra.det(t::TensorOperator) = (value(t))

for op (:(Base.inv),)
@eval $op(t::Endomorphism{V,<:Chain}) where V = TensorOperator($op(value(t)))
Expand Down Expand Up @@ -1007,3 +1008,7 @@ isinduced(::TensorBundle) = true
isinduced(x::Type{<:Submanifold}) = !isbasis(x)
isinduced(::Type{<:TensorBundle}) = true
isinduced(::Type{<:InducedMetric}) = true

@inline Base.log(t::Real,g::InducedMetric) = Base.log(t)
@inline Base.log(t::Complex,g::InducedMetric) = Base.log(t)

0 comments on commit 86a10d2

Please sign in to comment.