Change matrix_test to remove floats.Apply

Replaced the Apply call with a small function.  Also, go fmt changed a
few other files.

This is in preparation to make changes to gonum/floats - see discussion at https://groups.google.com/forum/#!topic/gonum-dev/kOSNjAYGpPc