Specifies the number of threads used by default in parallel sections.
Usage
setThreadsTP(num_threads=NULL)
Arguments
num_threads
the number of threads to use.
Value
Invisibly returns the previous number of threads.
Details
If num_threads is greater than the number of processors/cores
then the number of processors/cores is used. If package TPmsm
was compiled without OpenMP support then this function returns 1
regardless of the number of processors/cores available.
If num_threads=NULL the number of threads is not defined.
This is useful when the current number of threads is desired
without defining a new thread number.