CMR  1.3.0
Basic Utilities

This tool is useful for basic matrix operations:

  • Transposing the input matrix.
  • Turning a submatrix of a matrix into an explicit matrix.
  • Computing the support matrix of the input matrix.
  • Computing the signed support matrix (negative entries are turned into \( -1 \)'s, positive into \( +1 \)'s) of the input matrix.

Matrix Utilities

The command

cmr-matrix IN-MAT OUT-MAT [OPTION]...

copies the matrix from file IN-MAT to file OUT-MAT, potentially applying certain operations.

Options:

  • -i FORMAT Format of file IN-MAT, among dense for dense-matrix and sparse for sparse-matrix; default: dense.
  • -o FORMAT Format of file OUT-MAT, among dense for dense-matrix and sparse for sparse-matrix; default: same as format of IN-MAT.
  • -S IN-SUB Consider the submatrix of IN-MAT specified in file IN-SUB instead of IN-MAT itself; can be combined with other operations.
  • -t Transpose the matrix; can be combined with other operations.
  • -c Compute the support matrix instead of copying.
  • -C Compute the signed support matrix instead of copying.
  • -d Use double arithmetic instead of integers.

If IN-MAT or IN-SUB is - then the input matrix (resp. submatrix) is read from stdin. If OUT-MAT is - then the output matrix is written to stdout.