It is possible for a sparse matrix to actually be full of negative values, in which case this will incorrectly return 0 as the maximum.