.. # split from OESystemFunctions.rst:1514

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEGridMaxVal

.. attention::

   This function is available in C++ and Python only.

.. oe:function:: OEGridMaxVal

   .. oe:api::

      template<class GridType>
      GridType OEGridMaxVal(const OEFixedGrid<GridType>& grid)

   Returns the maximum value of the ``grid``.

   .. oe:language:: python

      The following specializations exist for this template:

      =================== =============================================
      OEDoubleGridMaxVal  OESystem::OEGridMaxVal<double>
      OEFloatGridMaxVal   OESystem::OEGridMaxVal<float>
      OEIntGridMaxVal     OESystem::OEGridMaxVal<int>
      =================== =============================================


