added new option for mprint_as_sparse that is useful to print the matrices for numeric integration