- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for iterateCombinations (0.23 sec)
-
pkg/kubelet/cm/cpumanager/cpu_assignment.go
return a.numCPUsNeeded > a.details.CPUs().Size() } // iterateCombinations walks through all n-choose-k subsets of size k in n and // calls function 'f()' on each subset. For example, if n={0,1,2}, and k=2, // then f() will be called on the subsets {0,1}, {0,2}. and {1,2}. If f() ever // returns 'Break', we break early and exit the loop. func (a *cpuAccumulator) iterateCombinations(n []int, k int, f func([]int) LoopControl) { if k < 1 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 25 23:56:21 UTC 2024 - 36.3K bytes - Viewed (0)