MCPcopy Create free account
hub / github.com/Open-Quant/openquant / combinations

Function combinations

crates/openquant/src/backtesting_engine.rs:588–593  ·  view source on GitHub ↗
(n: usize, k: usize)

Source from the content-addressed store, hash-verified

586}
587
588fn combinations(n: usize, k: usize) -> Vec<Vec<usize>> {
589 let mut out = Vec::new();
590 let mut current = Vec::with_capacity(k);
591 combinations_recursive(0, n, k, &mut current, &mut out);
592 out
593}
594
595fn combinations_recursive(
596 start: usize,

Callers 1

run_cpcvFunction · 0.85

Calls 1

combinations_recursiveFunction · 0.85

Tested by

no test coverage detected