Skip to content

Commit

Permalink
Sponsor a nice show function.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Dec 18, 2024
1 parent 92ea877 commit 07dca08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/manifolds/Segre.jl
Original file line number Diff line number Diff line change
Expand Up @@ -488,3 +488,7 @@ function sectional_curvature(M::Segre{ℝ,V}, p, u, v) where {V}
return inner(M, p, riemann_tensor(M, p, u, v, v), u) /

Check warning on line 488 in src/manifolds/Segre.jl

View check run for this annotation

Codecov / codecov/patch

src/manifolds/Segre.jl#L487-L488

Added lines #L487 - L488 were not covered by tests
(inner(M, p, u, u) * inner(M, p, v, v) - inner(M, p, u, v)^2)
end

function Base.show(io::IO, M::Segre{𝔽,V}) where {𝔽,V}
return print(io, "Segre($(join(V, ", ")); field=$(𝔽))")
end

0 comments on commit 07dca08

Please sign in to comment.