Andrew Johnson

Results 456 comments of Andrew Johnson

These files are not created/modified every time that a cmdstan model is executed - only the first time. If you install cmdstan and compile a model, these files will be...

@WardBrian it looks like the [UCRT flag cache step](https://github.com/stan-dev/math/blob/8a09048f5187662687e04c14d7737cf4d20a18a1/make/compiler_flags#L204) is actually still running the detection and write step even when the file already exists @weshinsley to workaround this for now,...

Given that `cmdstan_main.o` is just being repeatedly linked against when compiling a model, could we instead build `cmdstan_main_*` as a shared/static library when `build` is called? That way the model...

Thanks for this! Can you remove the changes to the `normal` and `double_exponential` if they're unrelated? Feel free to open a separate PR for them afterwards though!

On the C++ side, I don't believe there is anything specific about complex types when it comes to `apply_scalar_unary` and `apply_scalar_binary`, so if there is an existing scalar definition for...

The [standard-normal lcdf](https://github.com/stan-dev/math/blob/develop/stan/math/prim/prob/std_normal_lcdf.hpp) already uses that algorithm I believe

Fixed in `main`

Ah that's what I get for not testing. What's the easiest way for me to iterate with webR? Do you use the [demo web REPL](https://webr.r-wasm.org/latest/) or run something else locally?

Ah, it looks like this will be a tricky one to get working. The Math library needs to link to the TBB (not just include it's headers). To do this...

Possibly. But compiling the TBB under emscripten is beyond the scope of what I can patch/fix in this package and likely to need a fairly non-trivial amount of work, so...