stan-dev/stan — pull request #979 by PeterLi2016 (2014-08-30 12:15:59+00:00)
Title: Feature/test nan lgamma

#### Summary:
Added NaN tests for lgamma in math/functions, agrad/fwd/functions, and agrad/rev/functions with doc on behavior at NaN.

#### Intended Effect:
Added NaN tests for lgamma in agrad/fwd/functions, and agrad/rev/functions with doc on behavior at NaN.

#### How to Verify:
Run test/unit-agrad-fwd/functions/lgamma, test/unit-agrad-rev/functions/lgamma

#### Side Effects:
None.

#### Documentation:
Added doc on behavior of lgamma at NaN and partial derivatives.

#### Reviewer Suggestions:
Anyone.