stan_threads: Set or get the number of threads used to execute Stan models

stan_threadsR Documentation

Set or get the number of threads used to execute Stan models

Description

DEPRECATED. Please use the threads_per_chain argument when fitting the model.

Usage

num_threads()

set_num_threads(num_threads)

Arguments

num_threads

(positive integer) The number of threads to set.

Value

The value of the environment variable STAN_NUM_THREADS.


stan-dev/cmdstanr documentation built on April 12, 2025, 8:40 p.m.