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

◆ trace() [2/4]

template<typename T , require_all_kernel_expressions_and_none_scalar_t< T > * = nullptr>
var stan::math::trace ( const var_value< T > &  x)
inline

Returns the trace (sum of diagonal) of the specified matrix on the OpenCL device.

Parameters
xSpecified var_value containing a matrix.
Returns
trace of matrix

Definition at line 23 of file trace.hpp.