Programmer Guide/Command Reference/EVAL/sum: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
m (1 revision: Initial import)

Revision as of 18:31, 18 November 2010

sum

Calculate the summation over one or more user-defined extents of a vector x. The result of the following functions is a vector or a scalar (depending on the number of extents).

The summation of n extents of x. The first extent begins with the index us and the last extent ends with the index os.

Usage:

sum(x, us, os, n)

Result:

If n > 1 the result is a vector, otherwise it is a scalar.

The summation over the extent nrow(uv). Every pair (uv[i], ov[i]) defines an index extent to sum.

Usage:

sum(x, uv, ov)

The summation over the extent nrow(rv)-1. Every pair (rv[i], rv[i+1]) defines an index extent to sum.

Usage:

sum(x, rv)

The summation over the extent nrow(rm). Every pair (rm[i,0], rv[i,1] defines an index extent for summation.

Usage:

sum(x, rm)

Navigation menu

Personal tools