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...