NMOF-internal: Internal NMOF functions
Description
Several internal functions, not exported from the NMOF name space.Usage
makeInteger(x, label, min = 1L)
anyNA(x)
checkList(passedList, defaultList, label = "'algo'")
mRU(m,n)
mRN(m,n)
mcList(mc.control)
Details
makeInteger coerces the scalar x to integer. If the
result is NA or smaller than min, an error is issued.
anyNA gives TRUE if any(is.na(x)), else
FALSE. If x is a function or NULL, it also
gives FALSE.
checkList will issue an error if passedList contains any
NA elements. It will give a warning if any elements in
passedList are unnamed, or if an element in
names(passedList) is not found in names(defaultList).
mRU and mRN create matrices (of size m times
n) of uniform/Gaussian variates.
mcList takes a list of named elements and merges them with
the default settings of mclapply from package multicore.