stan-dev/stan — pull request #44 by betanalpha (2013-05-14 23:25:05+00:00)
Title: Check init=0 for finite density and gradients

Previously init=0 just set the model parameters to zero and began sampling, without actually checking that the zero values yielded finite density and gradients. The updated code checks both the density and all gradients, exiting if any are infinite (or if grad_log_prob throws an exception). No tests are affected.