x[slice,row,col]*x[slice,row,col] ) matrix.aggregate(F.plus,F.square); --> 140 For further examples, see the
package doc.
@param aggr an aggregation function taking as first argument the current aggregation and as second argument the transformed current cell value.
@param f a function transforming the current cell value.
@return the aggregated measure.
@see cern.jet.math.Functions