From 6e599112c2fd5bff09e942b61b5e2f4debef5042 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 19 Aug 2019 10:32:23 +0200 Subject: [PATCH] product:: made cpush0 work correctly --- hyperpoint.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index 6702903a..09ce2991 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -991,6 +991,10 @@ EX transmatrix transpose(transmatrix T) { #if HDR inline hyperpoint cpush0(int c, ld x) { hyperpoint h = Hypc; + if(c == 2 && prod) { + h[2] = exp(x); + return h; + } h[LDIM] = cos_auto(x); h[c] = sin_auto(x); return h;