From c26ba5c83e55a782c6f3e277f5845f20fd47aa10 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 26 May 2013 16:12:56 -0400 Subject: CarpetLib: Provide rint, round, trunc, and lrint for vectors --- Carpet/CarpetLib/src/vect.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Carpet/CarpetLib') diff --git a/Carpet/CarpetLib/src/vect.hh b/Carpet/CarpetLib/src/vect.hh index 2981f4a8f..dfe2ab7f8 100644 --- a/Carpet/CarpetLib/src/vect.hh +++ b/Carpet/CarpetLib/src/vect.hh @@ -391,7 +391,13 @@ DECLARE_FUNCTION_1 (abs) DECLARE_FUNCTION_1 (ceil) DECLARE_FUNCTION_1 (fabs) DECLARE_FUNCTION_1 (floor) +DECLARE_FUNCTION_1 (rint) +DECLARE_FUNCTION_1 (round) DECLARE_FUNCTION_1 (sqrt) +DECLARE_FUNCTION_1 (trunc) + +DECLARE_FUNCTION_1_RET (lrint, int) + namespace std { namespace Cactus { DECLARE_FUNCTION_1_RET (good_fpclassify, int) -- cgit v1.2.3