Skip to content
Snippets Groups Projects
Commit bd26c9b3 authored by Danilo Piparo's avatar Danilo Piparo
Browse files

[VecOps] Do not invoke vdt functions if vdt is disabled

parent 3050581f
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment