reducedim
reducedim(f, A, dims[, initial])
Reduce 2-argument function f
along dimensions of A
. dims
is a vector specifying the dimensions to reduce, and initial
is the initial value to use in the reductions. For +
, *
, max
and min
the initial
argument is optional.
The associativity of the reduction is implementation-dependent; if you need a particular associativity, e.g. left-to-right, you should write your own loop. See documentation for reduce
.
Examples
See Also
User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.