zcf man page

zcf — change field


zcf [Options] <Field> <Input> <Output>


This program converts between various data types.  Currently there are two kinds of conversions available:

In either case, the result is written to Output.



Quiet, no messages.


Verbose, more messages.

-T <MaxTime>

Set CPU time limit

Implementation Details

For matrices, the conversion is done in two steps.  First, all entries of the matrix are converted to integers.  Then, they are mapped to the new field and reassembled into rows.  The result is written out row by row.

In case of permutations the output matrix is generated row by row by inserting ones at the positions specified by the permutation.

If the input is a matrix, the whole matrix must fit into memory. Additionally, the program needs n·m·s bytes of memory, where m and n are the dimensions of the input matrix and s=1 for the small arithmetic version and s=2 for the big version.  In case of permutations, the input permutation and one row of the output file must fit into memory.

Referenced By


2.4.24 MeatAxe User Commands