Classes | |
| struct | f_sqr |
| Square fctor. More... | |
| struct | f_abs |
| Absolute value fctor. More... | |
Functions | |
| template<class T> const T | sqr (const T &val) |
| Square function. | |
| template<class T> const T | abs (const T &val) |
| Absolute value function. | |
| template<typename DestValue, typename I, typename J> DestValue | dot_product (const I &i, const J &j) |
| Dot product. | |
FIXME: this code sounds really odd. Why does the operator() take value<Self> instead of Self directly ? FIXME: Self should be renamed into Exact.
|
||||||||||||||||
|
Dot product.
Definition at line 142 of file olena/oln/math/macros.hh.
00143 {
00144 typedef typename mlc::if_<ntg_is_a(I, ntg::vectorial)::ret,
00145 internal::f_dot_product_v<DestValue, I, J>,
00146 internal::f_dot_product_nv<DestValue, I, J> >::ret fctor;
00147 return fctor::product(i, j);
00148 }
|
1.3.6-20040222