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
matrix
minus.hpp
Go to the documentation of this file.
1
#ifndef STAN__MATH__MATRIX__MINUS_HPP
2
#define STAN__MATH__MATRIX__MINUS_HPP
3
4
namespace
stan {
5
namespace
math {
6
14
template
<
typename
T>
15
inline
16
T
minus
(
const
T& x) {
17
return
-x;
18
}
19
20
}
21
}
22
#endif
stan::math::minus
T minus(const T &x)
Returns the negation of the specified scalar or matrix.
Definition:
minus.hpp:16
[
Stan Home Page
]
© 2011–2014, Stan Development Team.