From 3a8a3cf035a011114111a5e894f88dbb2f170f4a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 8 May 2020 20:26:23 +0200 Subject: [PATCH] added kz(vector) --- hprint.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hprint.cpp b/hprint.cpp index 706677e6..2b7de854 100644 --- a/hprint.cpp +++ b/hprint.cpp @@ -371,6 +371,13 @@ EX transmatrix kz(transmatrix h) { return h; } +#if HDR +template vector kz(vector v) { + for(auto& el: v) el = kz(el); + return v; + } +#endif + EX string pick123() { return cts('1' + rand() % 3); } EX string pick12() { return cts('1' + rand() % 2); }