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

◆ trace() [1/4]

template<typename T , require_all_kernel_expressions_and_none_scalar_t< T > * = nullptr>
value_type_t< T > stan::math::trace ( const T &  m)

Calculates trace (sum of diagonal) of given kernel generator expression.

Template Parameters
Ttype of the expression
Parameters
mexpression to calculate trace of
Returns
trace of given expression

Definition at line 22 of file trace.hpp.