[Developers] no assignment operator for init_bounded_number_vector
dave fournier
davef at otter-rsch.com
Tue Jul 23 11:04:58 PDT 2013
On 13-07-22 06:07 PM, Arni Magnusson wrote:
Doesn't sound too dangerous. One needs to think a bit about what
happens if somehow what one wants to
be the independent variables in the model end up not being the
independent variables. Could that happen?
People will do really weird stuff given half a chance.
> This "set_initial_value" function sounds useful.
>
> Can we recommend its use for the general modeller?
>
> If so, we should document it and I'll add it to the list of recognized
> keywords in the IDE
> (http://admb-project.org/tools/editors/emacs/admb.el).
>
> Arni
>
>
>
> ---------- Forwarded message ----------
> Date: Mon, 22 Jul 2013 08:50:21 -0400
> From: Larry Jacobson <larry.jacobson at noaa.gov>
> To: ADMB Users <Users at admb-project.org>
> Cc: Alan Seaver <Alan.Seaver at noaa.gov>
> Subject: [ADMB Users] Summary: Fwd: no assignment operator for
> init_bounded_number_vector
>
> 1) I was trying to initialize an init_bounded_number_vector parameter
> called logsrx in the initialization section but there was no
> assignment operator.
>
> 2) Chris Grandin (many thanks) knew just what to do and suggested the
> following code:
>
>> logsrx.set_initial_value(srx_init);
>
> Note that it is important to make sure the argument with the initial
> value is a double so there is no harm in using:
>
>> logsrx.set_initial_value(value(srx_init));
>
> 3) Rick Methot pointed out that assignment to many classes (but not
> bounded_number_vectors) can be managed using the value function only.
>
> 3) I couldn't find any documentation re set_initial_value but Chris
> mentioned that "The definition is in src/nh99/mcmcvar.h on line 2489."
>
> Cheers!
>
> Larry Jacobson
> _______________________________________________
> Developers mailing list
> Developers at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/developers
>
More information about the Developers
mailing list