From e4c775b986f957b3d5dade54fbf15fcfebf15099 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 2 Feb 2023 19:26:51 +0100 Subject: [PATCH] embeddings:: fixed map over itself in spherical product embedding --- embeddings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embeddings.cpp b/embeddings.cpp index 89688082..60546eb8 100644 --- a/embeddings.cpp +++ b/embeddings.cpp @@ -591,7 +591,7 @@ struct emb_euc_in_product : emb_euclid_noniso { ld bz = zlevel(a); auto h1 = a / exp(bz); ld by = asin_auto(h1[1]); - ld bx = atan_auto(h1[0] / h1[2]); + ld bx = atan2_auto(h1[0], h1[2]); return hyperpoint(bx, by, bz, 1); } transmatrix get_lsti() override { return cspin90(2, 1); }