Stan Math Library
2.6.3
probability, sampling & optimization
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Friends
Macros
stan
math
prim
scal
fun
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::math::divide
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.