Hi. Without knowing the internals I would simply guess the choice towards valarray stems from the fact, that element-wise mathematical operations are defined for it. Cheers Sebastian
Hello,
I am facing the following performance issues due to internals of quaternion.
abs(q) function is quite slow, and most of the time (according to callgrind) is taken to create valarray which is easily unnecessarily here. valarray requires doing malloc and free, because it is dynamic container, at the same time the size of quaternion is 4 and it is fixed.
So, was was the purpose to use std::valarray internally?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users