/* ** -*- C -*- ** ** abs.h ** Made by Bruno JOFRET ** ** Started on Thu Feb 8 10:12:17 2007 jofret ** Last update Mon Apr 23 17:10:57 2007 jofret ** ** Copyright INRIA 2007 */ #ifndef __ABS_H__ #define __ABS_H__ #include "floatComplex.h" #include "doubleComplex.h" #include "sqrt.h" /** ** \brief Float Absolute Value function ** Determine the absolute value of in. ** \param in : the float we must determine abs. ** \return -in or in depending on the sign of in. **/ float sabss(float in); /** ** \brief Double Absolute Value function ** Determine the absolute value of in. ** \param in : the double we must determine abs. ** \return -in or +in depending on the abs of in. **/ double dabss(double in); /** ** \brief Float Complex Absolute Value function ** Determine the absolute value of in. ** \param in : the float complex we must determine abs i.e. module. ** \return -in or in depending on the sign of in. **/ float cabss(floatComplex in); /** ** \brief Double Absolute Value function ** Determine the absolute value of in. ** \param in : the double we must determine abs i.e. module. ** \return -in or +in depending on the abs of in. **/ double zabss(doubleComplex in); #endif /* !__ABS_H__ */