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

◆ squared_distance() [1/11]

template<typename T_a , typename T_b , require_all_kernel_expressions_and_none_scalar_t< T_a, T_b > * = nullptr>
auto stan::math::squared_distance ( const T_a &  a,
const T_b &  b 
)
inline

Returns the squared distance.

Template Parameters
T_atype of the first kernel generator expression
T_btype of the second kernel generator expression
Parameters
afirst kernel generator expression
bsecond kernel generator expression
Returns
squared distance.
Exceptions
std::domain_errorIf the matrices are not the same size

Definition at line 30 of file squared_distance.hpp.