96 |
|
to the same input matrix. |
97 |
|
.PP |
98 |
|
If present, the second and subsequent matrices on the command |
99 |
< |
line are concatenated to the result unless separated by a plus ('+'), |
99 |
> |
line are concatenated to the result, unless separated by a plus ('+'), |
100 |
|
asterisk ('*'), or forward slash ('/') symbol, |
101 |
< |
in which case the matrix elements are added, multiplied, or divided together, |
102 |
< |
respectively. |
101 |
> |
in which case the individual matrix elements are added, |
102 |
> |
multiplied, or divided together, respectively. |
103 |
|
(Note that the asterisk must be quoted or escaped in most shells.)\0 |
104 |
|
In the case of addition, the two matrices involved must have the same number |
105 |
|
of components. |
106 |
+ |
If subtraction is desired, use addition ('+') with a scaling parameter of -1 |
107 |
+ |
for the second matrix (the |
108 |
+ |
.I \-s |
109 |
+ |
option). |
110 |
|
For element-wise multiplication and division, the second matrix is |
111 |
< |
permitted instead to have a single component per element, which will be |
111 |
> |
permitted to have a single component per element, which will be |
112 |
|
applied equally to all components of the first matrix. |
113 |
|
If element-wise division is specified, any zero elements in the second |
114 |
|
matrix will result in a warning and the corresponding component(s) in the |
162 |
|
To scale a matrix by 4 and add it to the transpose of another matrix: |
163 |
|
.IP "" .2i |
164 |
|
rmtxop -s 4 left.mtx + -t right.mtx > result.mtx |
165 |
+ |
.PP |
166 |
+ |
To left-multiply the element-wise division of two matrices: |
167 |
+ |
.IP "" .2i |
168 |
+ |
rmtxop -fd numerator.mtx / denominator.mtx | rmtxop left.mtx - > result.mtx |
169 |
|
.PP |
170 |
|
To send the elements of a binary matrix to |
171 |
|
.I rcalc(1) |