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

◆ sum() [7/7]

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

Returns the sum of the coefficients of the specified matrix.

Template Parameters
Ttype of the matrix of vector. Can be either a var matrix or matrix of vars.
Parameters
xSpecified var_value containing a matrix or vector.
Returns
Sum of coefficients of matrix.

Definition at line 47 of file sum.hpp.