Stan Math Library  2.8.0
reverse mode automatic differentiation
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
divide.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_DIVIDE_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_DIVIDE_HPP
3 
4 #include <cstddef>
5 #include <cstdlib>
6 
7 namespace stan {
8  namespace math {
9 
10  inline int divide(const int x, const int y) {
11  return std::div(x, y).quot;
12  }
13 
14  }
15 }
16 
17 #endif
stan::return_type< T1, T2 >::type divide(const T1 &v, const T2 &c)
Definition: divide.hpp:17

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