13 #include <boost/accumulators/numeric/functional/vector.hpp> 14 #include <boost/math/special_functions.hpp> 22 inline T
sq(T value) {
23 using boost::numeric::operators::operator*;
28 inline T
cb(T value) {
29 using boost::numeric::operators::operator*;
30 return value * value * value;
40 inline T
norm(T x, T y=T(), T z=T()) {
41 using boost::numeric::operators::operator+;
42 return (
sq(x) +
sq(y) +
sq(z));
46 inline T
r(T x, T y=T(), T z=T()) {
boost::array< T, N > cbrt(boost::array< T, N > arg)
boost::array< T, N > sqrt(boost::array< T, N > arg)
T norm(T x, T y=T(), T z=T())
std::vector< T > pow(std::vector< T > vec, U index)
boost::array< T, N > cb(boost::array< T, N > arg)
T r(T x, T y=T(), T z=T())
boost::array< T, N > sq(boost::array< T, N > arg)