Included cmath in common.hpp to avoid isnan complaints from the xcode compiler
turns out you need using::isnan too
the compiler complains about solver tests using pointers as bool
lint
fixed unnecessary conversions in test_solver, and rearraged common.hpp a bit
fix compiler complaint in matcaffe
Merge pull request #834 from qipeng/dev

Included cmath in common.hpp to avoid isnan complaints from the xcode co...
Merge remote-tracking branch 'upstream/dev' into dev
Fix and improve multiple places about random number generation and
shuffling
Merge pull request #848 from netheril96/random

Fix and improve multiple places about random number generation and shuffling
Merge remote-tracking branch 'upstream/dev' into dev