Did you change the MCMC algorithms? I don't understand why
your samplers would be behaving differently than the ones
currently in master.
The transform is described near the end of the manual in
the transforms chapter.
For the code, you can look at stan/prob/transform to see
where the transform is happening (through io/reader and io/writer).
In the generated code for a model, look at
transform_inits() for where a writer is used
for the transforms for variables read from
a context (base class implemented by file for the
command line and through R for RStan).
You then see the constraining transform getting called
through a reader in the log_prob functions.
The write_array() method takes unconstrained params and
inverse transforms to constrained parameters and then
writes the real ones to an array. This follows the
same format as write_csv(), writing the parameters out
in row-major order in the order they were declared.
The output is constrained. write_csv_header() writes
out the "names" of the parameters, including the
indices of an array --- this is the header dumped out
in the output from the command.
- Bob