unique_combos: Unique combinations of blocks

View source: R/utilities.R

unique_combosR Documentation

Unique combinations of blocks

Description

Compute a list of all possible block combinations where the number of blocks in each combination is limited by parameters min_level and max_level.

Usage

unique_combos(n_block, max_level, min_level = 2)

Arguments

n_block

integer number of input blocks.

max_level

integer maximum number of blocks per combination.

min_level

integer minimum number of blocks per combination.

Details

This function is used for minimal redundancy implementations of rosa and sopls and for lookups into computed components.

Value

A list of unique block combinations.

Examples

unique_combos(3, 2)


multiblock documentation built on Nov. 18, 2023, 5:06 p.m.