Logical value indicating whether combinations/permutations should be with or without repetition. If m = NULL, the length will default to length(v) or sum(freqs). If repetition = TRUE or freqs is utilized, m can exceed the length of v. ![]() All atomic types are supported (See is.atomic). If v is a negative integer, it will be converted to the sequence v:-1. If v is a positive integer, it will be converted to the sequence 1:v. PermuteGeneral(v, m = NULL, repetition = FALSE, freqs = NULL, NThreads = NULL, tolerance = NULL, FUN.VALUE = NULL) KeepResults = NULL, FUN = NULL, Parallel = FALSE, Lower = NULL, upper = NULL, constraintFun = NULL,ĬomparisonFun = NULL, limitConstraints = NULL, Usage comboGeneral(v, m = NULL, repetition = FALSE, freqs = NULL, GMP support allows for exploration of combinations/permutations of vectors with many elements. This is convenient when you want to apply a custom function to the output in parallel.Īttack integer partition and general subset sum problems. The arguments lower and upper make it possible to generate combinations/permutations in chunks allowing for parallelization via the parallel-package. You can also apply each of the five compiled functions given by the argument constraintFun in parallel. ![]() Produce results in parallel using the Parallel or nThreads arguments. Generate combinations or permutations of a vector with or without constraints. Generate Combinations and Permutations of a Vector with/without Constraints
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |