1#ifndef STAN_MATH_REV_FUN_HYPOT_HPP
2#define STAN_MATH_REV_FUN_HYPOT_HPP
29 a.adj() += vi.adj() * a.val() / vi.val();
30 b.adj() += vi.adj() * b.val() / vi.val();
48 a.adj() += vi.adj() * a.val() / vi.val();
93 b.adj() += vi.adj() * b.val() / vi.val();
fvar< T > hypot(const fvar< T > &x1, const fvar< T > &x2)
Return the length of the hypotenuse of a right triangle with opposite and adjacent side lengths given...
var_value< plain_type_t< T > > make_callback_var(T &&value, F &&functor)
Creates a new var initialized with a callback_vari with a given value and reverse-pass callback funct...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...