Function to reduce a matrix or array with a given clustering vector

1 |

`x` |
a matrix or a three-dimensional array to be reduced |

`clu` |
a vector with the class membership |

`labels` |
(optional) the labels to be used in the reduction |

Given a partition, this function serves to reduce either a matrix representing e.g. a partial order structure. However the reduction is also generalized a three-dimensional arrays representing multiple relations.

The reduced matrix or a three-dimensional array.

Use `decomp`

for the reduction of a semigroup object.

Antonio Rivero Ostoic

1 2 3 4 5 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.