Stan Math Library  2.15.0
reverse mode automatic differentiation
Namespaces | Functions
fmax.hpp File Reference
#include <stan/math/rev/core.hpp>
#include <stan/math/rev/scal/fun/is_nan.hpp>
#include <stan/math/prim/scal/fun/is_nan.hpp>
#include <stan/math/prim/scal/fun/constants.hpp>
#include <stan/math/prim/scal/meta/likely.hpp>

Go to the source code of this file.

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 

Functions

var stan::math::fmax (const var &a, const var &b)
 Returns the maximum of the two variable arguments (C99). More...
 
var stan::math::fmax (const var &a, double b)
 Returns the maximum of the variable and scalar, promoting the scalar to a variable if it is larger (C99). More...
 
var stan::math::fmax (double a, const var &b)
 Returns the maximum of a scalar and variable, promoting the scalar to a variable if it is larger (C99). More...
 

     [ Stan Home Page ] © 2011–2016, Stan Development Team.