parallel_inputs: Parallel Input Constructor

Description Usage Arguments Details Value Examples

Description

This function creates the cartesian product of the input vectors that are supplied to it. The list can then be used within the parallel package's parLapply function for doing batch simulations.

Usage

1

Arguments

...

collection of input parameter vectors

list

logical. return as list (otherwise a matrix)

Details

If you use variable names in the funtion call then the returning matrix or list will have the same variables names as column names. This can be useful for data management when doing postprocessing.

Value

list or matrix of cartesian product of inputs

Examples

1
parallel_inputs(alpha=1:10,beta=2:10)

isaacmichaud/IMisc documentation built on July 1, 2019, 10:22 a.m.