1#ifndef STAN_MATH_PRIM_FUN_SCALED_ADD_HPP
2#define STAN_MATH_PRIM_FUN_SCALED_ADD_HPP
11inline void scaled_add(std::vector<double>& x,
const std::vector<double>& y,
13 for (
size_t i = 0; i < x.size(); ++i) {
14 x[i] += lambda * y[i];
void scaled_add(std::vector< double > &x, const std::vector< double > &y, double lambda)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...