stan-dev/stan

Remove unused variational::base_family class

Open

#1.695 aberto em 19 de nov. de 2015

Ver no GitHub
 (6 comments) (0 reactions) (1 assignee)R (270 forks)batch import
code cleanupgood first issue

Métricas do repositório

Stars
 (1.476 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador