| 20 |
|
and columns are changing fastest in the input, which can have any number |
| 21 |
|
of components per matrix element. |
| 22 |
|
.PP |
| 23 |
+ |
The input must have a valid header, including dimensions and format, |
| 24 |
+ |
and a header will always be produced. |
| 25 |
+ |
This is similar behavior to |
| 26 |
+ |
.I rmtxop(1). |
| 27 |
+ |
If the input header is missing, one can usually be added with an |
| 28 |
+ |
appropriate call to |
| 29 |
+ |
.I rcollate(1). |
| 30 |
+ |
If an output header is not desired, it can be removed using |
| 31 |
+ |
.I getinfo(1). |
| 32 |
+ |
.PP |
| 33 |
|
One cannot specify crop boundaries outside the matrix dimension limits. |
| 34 |
|
If a 0 value is specified for the number of rows to copy, then all rows |
| 35 |
|
will be copied, starting from row0. |
| 76 |
|
starting from upper-left corner: |
| 77 |
|
.IP "" .2i |
| 78 |
|
rcrop 0 0 1000 1500 orig.hdr cropped.hdr |
| 79 |
+ |
.PP |
| 80 |
+ |
Two ways of computing the inner product of row 15 in matrix 1 by |
| 81 |
+ |
column 27 in matrix 2 and extracting the result without a header, |
| 82 |
+ |
the second command being more efficient: |
| 83 |
+ |
.IP "" .2i |
| 84 |
+ |
rmtxop -fa mat1.mtx mat2.mtx | rcrop 15 27 1 1 | getinfo - |
| 85 |
+ |
.IP "" .2i |
| 86 |
+ |
rmtxop -fa '!rcrop 15 0 1 0 mat1.mtx' '!rcrop 0 27 0 1 mat2.mtx' | getinfo - |
| 87 |
|
.SH AUTHOR |
| 88 |
|
Greg Ward |
| 89 |
|
.SH "SEE ALSO" |