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

◆ distance() [1/2]

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

Returns the distance between the specified vectors.

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
Distance between the inputs.
Exceptions
std::domain_errorIf the matrices are not the same size

Definition at line 33 of file distance.hpp.