src/NFfunction/muParser/muParser.cpp
//---------------------------------------------------------------------------
/** \brief Callback for determining the maximum value out of a vector. 
      \param [in] a_afArg Vector with the function arguments
      \param [in] a_iArgc The size of a_afArg
  */
\brief Callback for determining the maximum value out of a vector.
\param [in] a_afArg Vector with the function arguments
\param [in] a_iArgc The size of a_afArg
\ brief Callback for determining the maximum value out of a vector . \ param [ in ] a_afArg Vector with the function arguments \ param [ in ] a_iArgc The size of a_afArg
value_type Parser::Max(const value_type *a_afArg, int a_iArgc)
  { 
      if (!a_iArgc)	
          throw exception_type(_T("too few arguments for function min."));
      value_type fRes=a_afArg[0];
      for (int i=0; i<a_iArgc; ++i) fRes = std::max(fRes, a_afArg[i]);
      return fRes;
  }
value_type Parser :: Max ( const value_type * a_afArg , int a_iArgc ) { if ( ! a_iArgc ) throw exception_type ( _T ( " " ) ) ; value_type fRes = a_afArg [ 0 ] ; for ( int i = 0 ; i < a_iArgc ; ++ i ) fRes = std :: max ( fRes , a_afArg [ i ] ) ; return fRes ; }
\brief Callback for determining the maximum value out of a vector.
\ brief Callback for determining the maximum value out of a vector .