From bd26c9b30d5f0634d17e4503dd13ba89c32d8d7f Mon Sep 17 00:00:00 2001 From: Danilo Piparo <danilo.piparo@cern.ch> Date: Wed, 30 May 2018 11:21:01 +0200 Subject: [PATCH] [VecOps] Do not invoke vdt functions if vdt is disabled --- tutorials/vecops/vo002_VectorCalculations.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tutorials/vecops/vo002_VectorCalculations.C b/tutorials/vecops/vo002_VectorCalculations.C index bba2f943b97..5252f21a9f9 100644 --- a/tutorials/vecops/vo002_VectorCalculations.C +++ b/tutorials/vecops/vo002_VectorCalculations.C @@ -59,6 +59,8 @@ void vo002_VectorCalculations() << "sin(" << v1 << ") = " << v_sin << std::endl; // Even an optimised version of the functions is available + // provided that VDT is not disabled during the configuration +#ifdef R__HAS_VDT auto v_fast_exp = fast_exp(v1); auto v_fast_log = fast_log(v1); auto v_fast_sin = fast_sin(v1); @@ -72,4 +74,5 @@ void vo002_VectorCalculations() auto v_transf = Map(v1, [](double x) { return x * 2 / 3; }); std::cout << "Applying [](double x){return x * 2 / 3;} to " << v1 << " leads to " << v_transf << "\n"; +#endif } -- GitLab