Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
divide.hpp
Go to the documentation of this file.
1 #ifndef STAN__MATH__FUNCTIONS__DIVIDE_HPP
2 #define STAN__MATH__FUNCTIONS__DIVIDE_HPP
3 
4 #include <vector>
5 #include <cstddef>
6 #include <cstdlib>
7 
8 namespace stan {
9  namespace math {
10 
11  inline int divide(const int x, const int y) {
12  return std::div(x, y).quot;
13  }
14 
15  }
16 }
17 
18 #endif
int divide(const int x, const int y)
Definition: divide.hpp:11

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