There are plenty of great UDFs that the community has written that exist on this forum and the old google forum which may never make it into stan-math. Stemming from a discussion with @bbbales2 about having a repo that users could upload their code to. The proposal is to have an informal repo with some directory structure and would only require syntactically valid stan code (a separate directory for valid c++ code), a copywrite disclosure, and comments explaining the function or example usage of a fully fledged stan program just fully commented out. This is just a proposal and opening a discussion with the community, @SGB, and the @Stan_Development_Team .
My tentative proposal (ie open to change) is to have a github repo with the following structure. There could be a separate directory for c++ code and stan code. The biggest issue is how to organize this stuff. I don’t think there will be one best way to do it. The difficulty is that some functions link together, some are for constraints, some are for matrix algebra, pdfs, ect and the proposed structure may not fit easily into how the UDF works. Other issues:
- What to do if UDFs should be included together, especially if they are distributed among different directories?
- Someone would have to do some maintenance, such as PRs and double checking that the PR is in the right folder, etc.
Even with those issues, I think it would be nice to have a place where these reside other than the forums.
cpp (same sub structure as Stan)