Next: , Up: Utilities


6.1 readmatricesfromcols

Converts lists of lower triangular elements into symmetric matrices with rows summing to zero.

usage:

readmatricesfromcols inputfile outputfile

inputfile consists of a matrix whose columns are vectors listing the strictly lower triangular entries of a matrix, listed in order of rows (i.e. the entries of the vector are in the following positions of the matrix:

. . . . . . .
1 . . . . . .
2 3 . . . . .
4 5 6 . . . .

and so on). The output file is a list of symmetric matrices whose rows sum to 0. The output file can be used as a matrix file by cold.