Documentation


MVar.sum()

sum ( )

Sum the variables in an MVar. Returns an MLinExpr.

Return value:

The sum, as a linear matrix expression.

Example usage:

  x.sum()
  x[:,1].sum()