Solved invelid write when saving matrix with %g format and small weights which leads in a segmentation fault
Modified test.lua of digits to work with logistic_cross_entropy