permu.old: permu.old

Description Usage Arguments Value

Description

Generates permutations of perm and calls a callback fun for every permutation, without preallocating memory. This helps, when permutating very large vectors.

Usage

1
permu.old(perm, fun, steps = FALSE, current = NULL)

Arguments

perm

numeric vector; numbers which should be permuted

fun

function; callback function with 1 parameter

steps

logical; Generate only full permutations, or generate steps between them? Default: FALSE

current

numeric vector; Prepends given vector to permutation before calling fun

Value

nothing. If you want to save calculations, you need to write them into global workspace via fun


fftrees documentation built on May 2, 2019, 5:48 p.m.

Related to permu.old in fftrees...