[Developers] no assignment operator for init_bounded_number_vector
Arni Magnusson
arnima at hafro.is
Mon Jul 22 18:07:07 PDT 2013
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
More information about the Developers
mailing list