matrix_agg_cols/4

matrix_agg_cols(+ Matrix,+Operator,+ Aggregate)*

If Matrix is a n-dimensional matrix, unify Aggregate with the one dimensional matrix where each element is obtained by adding all Matrix elements with same first index. Currently, only addition is supported.