Stan
2.5.0
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
stan
math
functions
modulus.hpp
Go to the documentation of this file.
1
#ifndef STAN__MATH__FUNCTIONS__MODULUS_HPP
2
#define STAN__MATH__FUNCTIONS__MODULUS_HPP
3
4
#include <vector>
5
#include <cstddef>
6
#include <cstdlib>
7
8
namespace
stan {
9
namespace
math {
10
11
inline
int
modulus
(
const
int
x,
const
int
y) {
12
return
std::div(x, y).rem;
13
}
14
15
}
16
}
17
18
#endif
stan::math::modulus
int modulus(const int x, const int y)
Definition:
modulus.hpp:11
[
Stan Home Page
]
© 2011–2014, Stan Development Team.