Automatic Differentiation
 
Loading...
Searching...
No Matches
squared_distance.hpp File Reference

Go to the source code of this file.

Classes

class  stan::math::internal::squared_distance_vv_vari
 
class  stan::math::internal::squared_distance_vd_vari
 

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.
 
namespace  stan::math::internal
 A comparator that works for any container type that has the brackets operator.
 

Functions

var stan::math::squared_distance (const var &a, const var &b)
 Returns the squared distance.
 
var stan::math::squared_distance (const var &a, double b)
 Returns the squared distance.
 
var stan::math::squared_distance (double a, const var &b)
 Returns the squared distance.
 
template<typename EigVecVar1 , typename EigVecVar2 , require_all_eigen_vector_vt< is_var, EigVecVar1, EigVecVar2 > * = nullptr>
var stan::math::squared_distance (const EigVecVar1 &v1, const EigVecVar2 &v2)
 
template<typename EigVecVar , typename EigVecArith , require_eigen_vector_vt< is_var, EigVecVar > * = nullptr, require_eigen_vector_vt< std::is_arithmetic, EigVecArith > * = nullptr>
var stan::math::squared_distance (const EigVecVar &v1, const EigVecArith &v2)
 
template<typename EigVecArith , typename EigVecVar , require_eigen_vector_vt< std::is_arithmetic, EigVecArith > * = nullptr, require_eigen_vector_vt< is_var, EigVecVar > * = nullptr>
var stan::math::squared_distance (const EigVecArith &v1, const EigVecVar &v2)
 
template<typename T1 , typename T2 , require_all_vector_t< T1, T2 > * = nullptr, require_any_var_vector_t< T1, T2 > * = nullptr>
var stan::math::squared_distance (const T1 &A, const T2 &B)
 Compute the squared distance between the elements in two inputs.