Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
mat
fun
minus.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_MAT_FUN_MINUS_HPP
2
#define STAN_MATH_PRIM_MAT_FUN_MINUS_HPP
3
4
namespace
stan
{
5
namespace
math {
6
14
template
<
typename
T>
15
inline
T
minus
(
const
T& x) {
16
return
-x;
17
}
18
19
}
// namespace math
20
}
// namespace stan
21
#endif
stan
Definition:
log_sum_exp.hpp:8
stan::math::minus
T minus(const T &x)
Returns the negation of the specified scalar or matrix.
Definition:
minus.hpp:15
[
Stan Home Page
]
© 2011–2018, Stan Development Team.