Add copyright header to doc.go
Keep original comment style (e.g. line comments and block comments).
Fix doc comments containing multiple line comments.
Remove vanity imports from all files except doc.go.
Fixes#12.
The source code of fixdocs is located at:
https://play.golang.org/p/7RtYLzldsO
Add copyright header to doc.go
Keep original comment style (e.g. line comments and block comments).
Fix doc comments containing multiple line comments.
* diff/fd: implement Hessian finite difference, and code cleanups.
This commit primarily adds the Hessian function for finding a finite difference approximation to the Hessian. At the same time, it combines duplicated functionality across the difference routines so that the preludes to all the difference routines look similar