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); }