Model requiring var_context on constructor?

9 views
Skip to first unread message

Daniel Lee

unread,
Nov 26, 2014, 3:52:22 PM11/26/14
to stan...@googlegroups.com
Bob, I think this is really a question for you.

Do we need the var_context on the construction of the model? It doesn't look like it's actually stored. This will make it a lot easier to fix the partial inits thing.






Daniel

Bob Carpenter

unread,
Nov 26, 2014, 4:02:32 PM11/26/14
to stan...@googlegroups.com
Right --- the var_context itself isn't stored --- it's just
used to read data into the model instance. Similarly, the
var_context for dump takes an input stream, but doesn't store
the input stream --- it just reads from it during construction.

The var_context base class reference could be replaced with
something else, but something needs to get the data into the model.

I marked all the data const, so if you want to try to remove
the safe construction pattern that's there now, you have to
unmark everything as const.

I'm just guessing at what you want to do.

- Bob
> --
> You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Daniel Lee

unread,
Nov 26, 2014, 8:00:25 PM11/26/14
to stan...@googlegroups.com
Sorry -- you can ignore my original email. I didn't look at a good example.

I'm headed back to the drawing board.


Daniel

Reply all
Reply to author
Forward
0 new messages