Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ squared_distance() [11/11]

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 
)
inline

Compute the squared distance between the elements in two inputs.

This overload handles arguments where one of T1 or T2 are var_value<T> where T is an Eigen type. The other type can also be a var_value or it can be a matrix type that inherits from EigenBase

Template Parameters
T1type of first argument
T2type of second argument
Parameters
Afirst argument
Bsecond argument
Returns
sum of squared difference of A and B

Definition at line 157 of file squared_distance.hpp.