1#ifndef STAN_MATH_PRIM_FUN_MINUS_HPP
2#define STAN_MATH_PRIM_FUN_MINUS_HPP
17template <
typename T, require_not_std_vector_t<T>* =
nullptr>
30inline auto minus(
const std::vector<T>& x) {
32 x, [](
const auto& v) {
return -v; });
auto minus(const T &x)
Returns the negation of the specified scalar or matrix.
constexpr decltype(auto) apply(F &&f, Tuple &&t, PreArgs &&... pre_args)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...