m  a  t  g  e  n
Examples
Here are two examples of input files and the resulting matrices. On the right you can see the generated matrix both as a MatrixMarket file generated by matgen and as a Matview pciture.
The first example is a random sparse matrix and the second is a random sparse by row matrix. See docs page for more info on matrix types.

Input file

#Matrix type#
0
#Symmetry#
0
#Number of rows#
100
#Number of cols#
100
#Non-zero density#
0.15
#Non-zero diagonal (0=no / 1=yes)#
1
#diagonal dominant (0=no / 1=yes)#
1
#diagonal multiplication factor#
1.0
#minimum#
0
#maximum#
1
#force sparse output format (0=no / 1=yes)#
1
MatrixMarket file
output



Picture
matrix01


Input file

#Matrix type#
1
#Number of rows#
5000
#Number of cols#
5000
#Max non-zero per row#
10
#Min non-zero per row#
2
#Non-zero diagonal (0=no / 1=yes)#
1
#diagonal dominant (0=no / 1=yes)#
1
#diagonal multiplication factor#
1.0
#minimum#
0
#maximum#
1
#force sparse output format (0=no / 1=yes)#
1
MatrixMarket file
output



Picture
matrix04