Arguments
mat
matrix which should be written
ij
logical, if TRUE the format in the file will be: $i\quad j\quad value$, otherwise each row of the file represents one row in the matrix
sym
logical, if TRUE the matrix is symmetric, only important if ij
= TRUE
sparse
logical, if TRUE the matrix is written in sparse format (e.g. only non-zero values are written to the file), only important if ij
= TRUE
formatted
logical, if TRUE a blank line is inserted after all entries of one row, only important if ij
= TRUE