Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused variational::base_family class #85

Open
5 tasks
alashworth opened this issue Mar 12, 2019 · 0 comments
Open
5 tasks

Remove unused variational::base_family class #85

alashworth opened this issue Mar 12, 2019 · 0 comments
Labels
Milestone

Comments

@alashworth
Copy link
Owner

Issue by bob-carpenter
Thursday Nov 19, 2015 at 03:39 GMT
Originally opened as stan-dev/stan#1695


The base class variational::base_family has no virtual methods and the one function it does define uses no member variables or functions, so can be made standalone outside of the class. Therefore, base_family should be removed.

  • remove src/stan/variational/base_family.hpp
  • move function write_error_msg_() into its own file and rename without suffix _
  • patch families/normal_meanfield.hpp and families/normal_fullrank.hpp:
    • remove references to base_family
    • change calls to write_error_msg_ to include and call new function

If the intent was to somehow pull down some of the functionality from the subclasses, then this issue should be repurposed to do that.

@alashworth alashworth added this to the Future milestone Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant