httpstan.compile

Runs the stanc binary in a subprocess to compile a Stan program.

Module Contents

Functions

compile(program_code: str, stan_model_name: str) → Tuple[str, str]

Return C++ code for Stan model specified by program_code.

httpstan.compile.compile(program_code: str, stan_model_name: str) Tuple[str, str]

Return C++ code for Stan model specified by program_code.

Parameters
  • program_code

  • stan_model_name

Returns

C++ code, stanc warnings

Return type

(str, str)

Raises

ValueError – Syntax or semantic error in program code.