![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
#include <stan/math/prim/meta.hpp>#include <stan/math/prim/err.hpp>#include <stan/math/prim/fun/as_column_vector_or_scalar.hpp>#include <stan/math/prim/fun/Eigen.hpp>#include <stan/math/prim/fun/square.hpp>Go to the source code of this file.
Namespaces | |
| namespace | stan |
| The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation. | |
| namespace | stan::math |
| Matrices and templated mathematical functions. | |
Functions | |
| template<typename Scal1 , typename Scal2 , require_all_stan_scalar_t< Scal1, Scal2 > * = nullptr, require_all_not_var_t< Scal1, Scal2 > * = nullptr> | |
| return_type_t< Scal1, Scal2 > | stan::math::squared_distance (const Scal1 &x1, const Scal2 &x2) |
| Returns the squared distance. | |
| template<typename EigVec1 , typename EigVec2 , require_all_eigen_vector_t< EigVec1, EigVec2 > * = nullptr, require_all_not_eigen_vt< is_var, EigVec1, EigVec2 > * = nullptr> | |
| return_type_t< EigVec1, EigVec2 > | stan::math::squared_distance (const EigVec1 &v1, const EigVec2 &v2) |
| Returns the squared distance between the specified vectors of the same dimensions. | |