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

Useful tools for morphological math. More...


Functions

template<class T> 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 diffabs const T &  v1,
const T &  v2
 

Absolute value of difference between v1 and v2.

Warning:
Should be moved elsewhere.

Definition at line 65 of file attributes.hh.

00066         {
00067           return v1 > v2 ? v1 - v2 : v2 - v1;
00068         }


Generated on Thu Apr 15 20:16:56 2004 for Olena by doxygen 1.3.6-20040222