oln::morpho::attr::tools Namespace Reference

Useful tools for morphological math. More...


Functions

template<class T>
diffabs (const T &v1, const T &v2)
 Absolute value of difference between v1 and v2.


Detailed Description

Useful tools for morphological math.

Function Documentation

template<class T>
T oln::morpho::attr::tools::diffabs ( const T &  v1,
const T &  v2 
)

Absolute value of difference between v1 and v2.

Warning:
Should be moved elsewhere.

Definition at line 50 of file morpho/attributes.hh.

Referenced by oln::morpho::attr::volume_type< I, Exact >::pe_impl().

00051         {
00052           return v1 > v2 ? v1 - v2 : v2 - v1;
00053         }


Generated on Tue Feb 20 20:29:04 2007 for Olena by  doxygen 1.5.1