From f41fece46e8e2bc71b172fda35985310a9aea729 Mon Sep 17 00:00:00 2001 From: Ronny Bergmann Date: Fri, 20 Dec 2024 08:16:56 +0100 Subject: [PATCH] add a show method for the warped metric so it prints nicer on REPL --- src/manifolds/SegreWarpedMetric.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/manifolds/SegreWarpedMetric.jl b/src/manifolds/SegreWarpedMetric.jl index 793fb038d..c61a069f7 100644 --- a/src/manifolds/SegreWarpedMetric.jl +++ b/src/manifolds/SegreWarpedMetric.jl @@ -308,6 +308,10 @@ function sectional_curvature( (inner(M, p, u, u) * inner(M, p, v, v) - inner(M, p, u, v)^2) end +function show(io::IO, ::WarpedMetric{A}) where {A} + return print(io, "WarpedMetric($A)") +end + function spherical_angle_sum( M::MetricManifold{ℝ,Segre{ℝ,V},WarpedMetric{A}}, p,