From 10db4284a5b8cb94b5c903a78eecb9820992ab85 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Fri, 30 Jul 2021 13:53:48 +0200 Subject: [PATCH] types: remove indent + add print --- include/eigenpy/user-type.hpp | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/include/eigenpy/user-type.hpp b/include/eigenpy/user-type.hpp index 8a23c540..82fad254 100644 --- a/include/eigenpy/user-type.hpp +++ b/include/eigenpy/user-type.hpp @@ -170,18 +170,19 @@ namespace eigenpy inline static void dotfunc(void * ip0_, npy_intp is0, void * ip1_, npy_intp is1, void * op, npy_intp n, void * /*arr*/) { - T res = T(0); - char *ip0 = (char*)ip0_, *ip1 = (char*)ip1_; - npy_intp i; - for(i = 0; i < n; i++) - { - - res += *static_cast<T*>(static_cast<void*>(ip0)) - * *static_cast<T*>(static_cast<void*>(ip1)); - ip0 += is0; - ip1 += is1; - } - *static_cast<T*>(op) = res; +// std::cout << "dotfunc" << std::endl; + T res(0); + char *ip0 = (char*)ip0_, *ip1 = (char*)ip1_; + npy_intp i; + for(i = 0; i < n; i++) + { + + res += *static_cast<T*>(static_cast<void*>(ip0)) + * *static_cast<T*>(static_cast<void*>(ip1)); + ip0 += is0; + ip1 += is1; + } + *static_cast<T*>(op) = res; } -- GitLab