From 07dca08da9af61e33e710320b0ade089b73f845e Mon Sep 17 00:00:00 2001 From: Ronny Bergmann Date: Wed, 18 Dec 2024 20:14:36 +0100 Subject: [PATCH] Sponsor a nice show function. --- src/manifolds/Segre.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/manifolds/Segre.jl b/src/manifolds/Segre.jl index bb3e19dd3..e8fc47963 100644 --- a/src/manifolds/Segre.jl +++ b/src/manifolds/Segre.jl @@ -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) / (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