Sums A's entries within each (row-group, column-group)
block – TDA's mag. row_groups/col_groups
assign each row/column of A to a group (any positive
integers; groups need not be contiguous or start at 1). The
result has one row per distinct value in row_groups and
one column per distinct value in col_groups, in ascending
order of group number.
Usage
tda_mag(A, row_groups, col_groups, dir = tempfile("tda"))See also
Other matrix reshaping:
tda_mcath(),
tda_mcvec(),
tda_mrsum(),
tda_msort(),
tda_msrow(),
tda_mtrim()