Closed WardBrian closed 2 years ago
This tweaks code gen slightly to initialize empty complex Eigen types to have nan for both the real and imaginary portions.
nan
Currently, the model:
transformed data { complex_vector[1] Z; } model { print(Z[1]); }
prints (nan, 0). This PR makes that (nan, nan)
(nan, 0)
(nan, nan)
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)
+1 to this fix. I should've caught this the first time around.
Thanks, looks good to me.
Submission Checklist
Release notes
This tweaks code gen slightly to initialize empty complex Eigen types to have
nan
for both the real and imaginary portions.Currently, the model:
prints
(nan, 0)
. This PR makes that(nan, nan)
Copyright and Licensing
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)