realroot_doc 0.1.1
abs_max< T > Struct Template Reference

#include <univariate_bounds.hpp>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<typename T>
struct mmx::abs_max< T >

Definition at line 149 of file univariate_bounds.hpp.


Constructor & Destructor Documentation

abs_max ( ) [inline]

Definition at line 151 of file univariate_bounds.hpp.

: max(T(-1)) {}

Member Function Documentation

void operator() ( const T &  x) [inline]

Definition at line 152 of file univariate_bounds.hpp.

References mmx::abs(), and abs_max< T >::max.

    {
        // using std::abs;
      T temp = abs(x);
      if (temp > max) max = temp;
    }

Member Data Documentation

T max

Definition at line 158 of file univariate_bounds.hpp.

Referenced by abs_max< T >::operator()(), and Cauchy< C >::upper_bound().


The documentation for this struct was generated from the following file: