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

◆ sum() [3/7]

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

Returns the sum of the coefficients of the specified matrix on the OpenCL device.

Parameters
xSpecified var_value containing a matrix.
Returns
Sum of coefficients of matrix.

Definition at line 22 of file sum.hpp.