1zad(1) User Commands zad(1)
2
3
4
6 zad - add or subtract matrices
7
9 zad [OPTIONS] [-]<Mat> [-]<Mat> ... <Result>
10
12 This program reads two or more input matrices, calculates their sum or
13 difference and writes the result to a file. The input matrices must be
14 compatible, i.e., they must be over the same field and have the same
15 dimensions. Zad is designed to work with very large matrices without
16 running out of memory. Only two rows are allocated as working memory.
17
18 By default, all input matrices are added. For example,
19
20 zad A B C
21
22 calculates the sum of A and B, and writes the result to C. If a file
23 name is preceeded by a minus sign, this matrix is subtracted. For
24 example,
25
26 zad A -B -C D
27
28 calculates D=A-B-C. To subtract the first matrix, you must insert an
29 extra "--" before the file names. Otherwise the first argument would
30 be interpreted as a program option. For example, to calculate C=-A-B,
31 use
32
33 zad -- -A -B C
34
35 If a file name starts with "-", preceed the file name by "+" to add, or
36 by "-" to subtract the matrix. If, for example, the second input file
37 is "-B", use the following syntax:
38
39 zad A +-B C
40 zad A --B C
41
43 -Q Quiet, no messages.
44
45 -V Verbose, more messages.
46
47 -T <MaxTime>
48 Set CPU time limit
49
51 Mat ...
52 Input matrix or matrices.
53
55 Result Sum of the input matrices.
56
57
58
59MeatAxe 2.4.24 zad(1)